Answers for "how to copy data from table in sql"

SQL
1

how to copy data in sql

INSERT INTO my_table my
SELECT * FROM another_table an
WHERE an.col1 > 10;

INSERT INTO my_table (colA, colB) 
SELECT an.col1 AS colA, an.col2 AS colB FROM another_table an
WHERE an.col1 > 10;
Posted by: Guest on May-08-2021

Code answers related to "how to copy data from table in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language