insert data into table mysql code example
Example 1: mySql insert row
INSERT INTO `table_name`(column_1,column_2,...) VALUES (value_1,value_2,...);
Example 2: sql insert into
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
Example 3: insert into table from another table mysql
INSERT INTO table1 (emp_id, fname)
SELECT emp_id, fname
FROM table2
WHERE status = 'Active';