tags:

views:

47

answers:

1

Hello, how do i efficiently copy a row data from one table to another table, where both of them are the same structure. i could go the much harder way of retrieving initial values from the row in the first table and then inserting to the second table. But i feel there is a more efficient way this can be done. Thank you

A: 
insert into table1 select * from table2
cement
hey, thanks, really appreciate it. but sorry, is this correct if i want to copy from a particular row.. insert into table1 select * from table2 where = rowID
Rexx
yep, WHERE item_id = <value> should work fine.
cement
oh great! thanks once again.
Rexx