I have two tables that are slightly different from each other. Table A has 4 columns, and in Table B only 3. I want to copy all the data from Table B to Table A, but I also want to populate the extra column with a value of 1 for each row.
This will work, if not for the extra column:
insert into TABLEA (COL1, COL2, COL3) select COL1, COL2, COL3 from TABLEB;
Unfortunately, the extra column in table A is not NULL, so I cannot start the update right away.
Thanks for any help!
source share