-- INTO copies specified columns into a new table
SELECT *
INTO newtable [IN externaldb]
FROM oldtable
WHERE condition;
SELECT column1, column2, column3
INTO newtable [IN externaldb]
FROM oldtable
WHERE condition;
Eg: SELECT * INTO CustomersBackup
FROM Customers;
SELECT * INTO CustomersBackup IN 'Backup.mdb'
FROM Customers;
SELECT CustomerName, ContactName INTO CustomersBackup2017
FROM Customers;
Code Example |
---|
Sql :: cross join sl |
Sql :: oracle job schedules |
Sql :: three inner joins sql |
Sql :: sql default |
Sql :: mysql in clausule string array |
Sql :: postgres advance auto increment |
Sql :: show broken table mysql |
Sql :: mysql undo delete |
Sql :: substract variable amount of minutes from timestamp postgresql |
Sql :: function plsql |
Sql :: sqlcmd |
Sql :: replace function in sql |
Sql :: database passwords from dbeaver |
Sql :: mysql date comparison with formatting |
Sql :: sql xor |
Sql :: function in sql |
Sql :: sql queries practice |
Sql :: update database collation in postgresql |
Sql :: sql procedure |
Sql :: asp.net core sql server stored procedure |
Sql :: create domain sql |
Sql :: triggers db |
Sql :: call rest api from postgresql |
Sql :: sql limit results |
Sql :: install mysql ubuntu 20.10 |
Sql :: cronjob mysql backup |
Sql :: mysql coonect sample code |
Sql :: hive hbase create external table |
Sql :: mysql set variable in a session |
Sql :: query archive mode |