Answers for "table copy sql query"

SQL
7

copy table sql server

-- Use SELECT ... INTO:
SELECT * INTO my_table_1 FROM my_table;
-- Structure only:
SELECT * INTO my_table_1 FROM my_table WHERE 1 <> 1;
Posted by: Guest on May-08-2021
0

copy table in sql

CREATE TABLE employees_copy
 AS 
 SELECT first_name, last_name, email FROM employees WHERE 1=0;
Posted by: Guest on September-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language