Posted By

chrispantelis on 06/25/14


Tagged

sql


Versions (?)

Create Table Based on Another Table


 / Published in: SQL
 

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

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

  1. SELECT * INTO newtable FROM oldtable WHERE 1 = 0;

Report this snippet  

You need to login to post a comment.