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.
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.
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.
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)
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.