Answers for "mysql create table copy from another"

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
0

copy data from one table to another mysql

INSERT INTO table2 (st_id,uid,changed,status,assign_status)
SELECT st_id,from_uid,now(),'Pending','Assigned'
FROM table1
Posted by: Guest on June-06-2021

Code answers related to "mysql create table copy from another"

Code answers related to "SQL"

Browse Popular Code Answers by Language