Answers for "copy table in mysql"

SQL
4

mysql copy table with new name

CREATE TABLE IF NOT EXISTS new_table LIKE existing_table;

INSERT new_table
SELECT * FROM existing_table;
Posted by: Guest on September-09-2020
1

mysql copy table to another table

CREATE TABLE new_table 
SELECT col1, col2, col3 
FROM
    existing_table
WHERE
    conditions;
Posted by: Guest on March-14-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language