Dec 18, 2003 #1 noober IS-IT--Management Oct 10, 2003 112 US Is it possible to insert all of the data from one table into another table with the exact same table structure?
Is it possible to insert all of the data from one table into another table with the exact same table structure?
Dec 18, 2003 #2 olded Programmer Oct 27, 1998 1,065 US Hi: Yes, if table1 and table2 have the same structure you can do something like this: insert into table1 select * from table2 Of course, you can use a where clause on the select or even use a subset of the table structure: insert into table1(col1, col2, col3) select col1, col2, col3 from table2 where col1 = "something" Regards, Ed Upvote 0 Downvote
Hi: Yes, if table1 and table2 have the same structure you can do something like this: insert into table1 select * from table2 Of course, you can use a where clause on the select or even use a subset of the table structure: insert into table1(col1, col2, col3) select col1, col2, col3 from table2 where col1 = "something" Regards, Ed
Dec 18, 2003 Thread starter #3 noober IS-IT--Management Oct 10, 2003 112 US Sweeeeeeet! Thanks. Upvote 0 Downvote