zip_000
02-23-2010, 07:19 PM
Hello,
I need to copy a row from one table to another, and the second table needs to have, in addition to the row data, the date that it was moved....and I just can't quite grasp the syntax that I need to do this.
Here's what I've got so far:
INSERT INTO db.table1 Select * from db.table2 WHERE Primary_Key = $Primary_Key
Which would work if I didn't need to add the row. What is the syntax that I need?
Thanks!
I need to copy a row from one table to another, and the second table needs to have, in addition to the row data, the date that it was moved....and I just can't quite grasp the syntax that I need to do this.
Here's what I've got so far:
INSERT INTO db.table1 Select * from db.table2 WHERE Primary_Key = $Primary_Key
Which would work if I didn't need to add the row. What is the syntax that I need?
Thanks!