I can do the following to insert records into a table from a selection table into another table:
INSERT INTO table (field1, field2) SELECT field1,field2 FROM table2
Can I do the same with the update? Something like this (doesn't work!):
UPDATE table SET field1=table2.field1, field2=table2.field2 SELECT field1,field2 FROM table2 WHERE table.field0=table2.field0
I know how to do this with only one field, but is there a way to do this with multiple fields?
Dylan source share