📜  在插入查询中选择 - SQL 代码示例

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

代码示例1
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;

#INSERT INTO table2 (column1, column2, column3, ...)
#SELECT column1, column2, column3, ...
#FROM table1
#WHERE condition;