insert data from one table to another table in mysql code example
Example: insert into table from another table mysql
INSERT INTO table1 (emp_id, fname)
SELECT emp_id, fname
FROM table2
WHERE status = 'Active';
INSERT INTO table1 (emp_id, fname)
SELECT emp_id, fname
FROM table2
WHERE status = 'Active';