Jump to content

Moving a record


SirChick

Recommended Posts

You can just use a sub-query in place of the data. It would be something like:

"INSERT INTO table2 (field1, field2, field3) VALUES ((SELECT field1 FROM table1 WHERE something = something), (SELECT field2 FROM table1 WHERE something = something), (SELECT field3 FROM table1 WHERE something = something))"

Link to comment
https://forums.phpfreaks.com/topic/67469-moving-a-record/#findComment-338744
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.