I have two tables that are very slightly different. Table A has 4 columns, and Table B has only 3. I want to copy all the data from Table B into Table A, but I also want to populate the extra column with the value 1
for every row.
This would 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 nullable, so I can't just run an update afterwards.
Thanks for any help!