/ Published in: SQL
If you want to make a copy of the table including all of the data, then leave out the WHERE clause.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT * INTO newtable FROM oldtable WHERE 1 = 0;
URL: http://stackoverflow.com/questions/18254104/how-do-i-create-a-table-based-on-another-table