Answers for "copy table structure in mysql"

SQL
0

clone table structure mysql

CREATE TABLE foo SELECT * FROM bar LIMIT 0

Or
CREATE TABLE foo SELECT * FROM bar WHERE 1=0
Posted by: Guest on December-22-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 "copy table structure in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language