0

I create a master table with column A, column B, and column C. Whenever I try to insert row from another table using the command:

INSERT INTO MASTER
select * from Table B

I get the error message "Character Width exceeded". I am not sure why.

cool_cs
  • 1,661
  • 6
  • 20
  • 26

3 Answers3

0

May be the one or more column size of Table B is larger than the respective column size of MASTER.

For e.g. - Table B's column1 might be VARCHAR(255) and MASTER's column A might be less than 255.

JHS
  • 7,761
  • 2
  • 29
  • 53
0

Check if the structure of table MASTER is exactly the same as the table B.

Probably is a problem in which MASTER.colx is a string(20) and B.colx is a string(25), or may be is a charset problem (unicode/latin-1/utf-8/iso-8859-x)

jperelli
  • 6,988
  • 5
  • 50
  • 85
0

Consider creating the table MASTER as:

select *
  into master
  from tableB
 where 1=0

This will guarantee that the column datatypes are the same between the two tables. Then you can try your insert again.

Stagg
  • 2,660
  • 5
  • 34
  • 32