xxxxxxxxxx
INSERT INTO table_name(column_list)
SELECT
select_list
FROM
another_table
WHERE
condition;
Code language: SQL (Structured Query Language) (sql)
xxxxxxxxxx
--format
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;
--examples
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;