Return to Snippet

Revision: 66723
at June 25, 2014 00:08 by chrispantelis


Initial Code
SELECT * INTO newtable FROM oldtable WHERE 1 = 0;

Initial URL
http://stackoverflow.com/questions/18254104/how-do-i-create-a-table-based-on-another-table

Initial Description
If you want to make a copy of the table including all of the data, then leave out the WHERE clause.

Initial Title
Create Table Based on Another Table

Initial Tags
sql

Initial Language
SQL