Sometimes you need to update a table from another table and what you can
do then is SELECT all data.. loop over it with CF en INSERT the data
into the other table....OR.... you can let the database sort it out.
INSERT INTO table1 (column1,column2,column3....)
SELECT column1,
column2,
'somevalue' AS column3,
....
FROM table2
INSERT INTO table1 (column1,column2,column3....)
SELECT column1,
column2,
'somevalue' AS column3,
....
FROM table2
No comments:
Post a Comment