Answers for "mysql create table insert into with select"

SQL
2

mysql select into new table

-- Insert into existing my_table
INSERT INTO my_table my SELECT * FROM another_table an WHERE an.col1 > 10;
-- or directely create the new table
CREATE TABLE my_table AS SELECT * FROM another_table an WHERE an.col1 > 10;
Posted by: Guest on May-09-2021

Code answers related to "mysql create table insert into with select"

Code answers related to "SQL"

Browse Popular Code Answers by Language