📜  sql 代码示例中的 into 运算符

📅  最后修改于: 2022-03-11 15:05:33.239000             🧑  作者: Mango

代码示例1
-- 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;