Answers for "mysql clone row"

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
0

duplicate row mysql

# Duplicate rows or row
INSERT INTO table (col1, col2, col3)
SELECT col1, col2, col3 FROM table
WHERE something...;
Posted by: Guest on May-20-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language