Answers for "insert into table from another table"

SQL
5

insert a select statement into a table

--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;
Posted by: Guest on March-30-2020
0

create table and insert values from another table

CREATE TABLE new_table AS
SELECT * 
FROM   old_table;
Posted by: Guest on May-13-2021

Code answers related to "insert into table from another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language