hey, I have written a bunch of insert statements and basically all I am trying to do is fill up columns of one table with values from columns of the second table.
My insert statement looks like:
INSERT table1(column)
SELECT column
FROM table2
Now, this works for one column , but when I run another statement like this trying to update another column, the second time around it does not work.
It does not error out, it shows that it runs fine, but the data is not shown on the table. Some of the data which is shown removes the data from the first column in the adjacent row. I am sure I am missing something here, but not able to figure it out, please HELP .
My insert statement looks like:
INSERT table1(column)
SELECT column
FROM table2
Now, this works for one column , but when I run another statement like this trying to update another column, the second time around it does not work.
It does not error out, it shows that it runs fine, but the data is not shown on the table. Some of the data which is shown removes the data from the first column in the adjacent row. I am sure I am missing something here, but not able to figure it out, please HELP .
Comment