-- Use SELECT ... INTO:
SELECT * INTO my_table_1 FROM my_table;
-- Structure only:
SELECT * INTO my_table_1 FROM my_table WHERE 1 <> 1;
CREATE TABLE newtableName LIKE anotherTable;
INSERT INTO newTable
SELECT * FROM oldTable
CREATE TABLE employees_copy
AS
SELECT first_name, last_name, email FROM employees WHERE 1=0;
Code Example |
---|
Sql :: oracle sql drop table |
Sql :: zerar auto increment mysql |
Sql :: installing mysql on fedora |
Sql :: monthname sql |
Sql :: sql remanecolumn |
Sql :: pop sql insert value into |
Sql :: sql server utc to local |
Sql :: oracle show trigger code |
Sql :: create procedure with encryption |
Sql :: set password mysql |
Sql :: python how to connect to sql server |
Sql :: apex select list ORA-20999 |
Sql :: oracle character index |
Sql :: describe sql server |
Sql :: how to get ddl for materialized view |
Sql :: sql primary key with multiple columns |
Sql :: inner join just one row |
Sql :: mysql mediumint max value |
Sql :: creating a view sql |
Sql :: How Not To Sort By Average Rating |
Sql :: mysql with rollup |
Sql :: sql insert timestamp |
Sql :: varchar plsql |
Sql :: PL SQL MODIFY COLUMN NME |
Sql :: show tables postgresql |
Sql :: sql server reseed identity column |
Sql :: postgres list all roles |
Sql :: backup postgres database |
Sql :: mysql incrementation |
Sql :: mysql remote connection command line |