eludlow Posted September 11, 2007 Share Posted September 11, 2007 I've got a fairly big table that has a list of members of an organisation. However, some of these records are out of date, and I'd like to move them all to another table of "lost" members that will have the same structure as the main table. It's easy for me to make something that inserts the old date into the new table and then deletes the record from the original table, but curious if mySQL has a function that will do this automatically? I can imagine it's a fairly common thing to want done.... Thanks, Ed Ludlow Quote Link to comment https://forums.phpfreaks.com/topic/68814-transfer-records-between-tables/ Share on other sites More sharing options...
GOKU Posted September 11, 2007 Share Posted September 11, 2007 You can use insert into new_table select field1,field2,...fieldn from old_table where creteria Quote Link to comment https://forums.phpfreaks.com/topic/68814-transfer-records-between-tables/#findComment-345992 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.