Create Table Based on Another Table

/ Published in: SQL
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. SELECT * INTO newtable FROM oldtable WHERE 1 = 0;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.