Answers for "mysql create duplicate table"

SQL
1

how to duplicate table in mysql

CREATE table `duplicat` LIKE `orginal`;
INSERT `duplicat` SELECT * FROM `orginal`;
Posted by: Guest on June-02-2021
0

duplicate record mysql

SELECT firstname, 
   lastname, 
   list.address 
FROM list
   INNER JOIN (SELECT address
               FROM   list
               GROUP  BY address
               HAVING COUNT(id) > 1) dup
           ON list.address = dup.address;
Posted by: Guest on June-11-2021
0

duplicate row mysql

# Duplicate row and change values in the duplicated row
INSERT INTO table (col1, col2, col3)
# manually insert data to the duplicated row
SELECT "new value", "new value", "new value" FROM table
WHERE something...;
Posted by: Guest on May-20-2021

Code answers related to "mysql create duplicate table"

Code answers related to "SQL"

Browse Popular Code Answers by Language