INSERT INTO database2.table2 SELECT * from database1.table1
CREATE TABLE new_table
SELECT col1, col2, col3
FROM
existing_table
WHERE
conditions;
INSERT INTO table2 (st_id,uid,changed,status,assign_status)
SELECT st_id,from_uid,now(),'Pending','Assigned'
FROM table1
CREATE TABLE employees_clone LIKE employees;
insert into database1.table select * from database2.table where id not in(select id from database1.table);
UPDATE `Table2`
JOIN `Table1` ON `Table1`.`a_id` = `Table2`.`id`
SET `Table2`.`txn_stamp` = `Table1`.`tranx_id`