mysql insert into syntax example
Example 1: mySql insert row
INSERT INTO `table_name`(column_1,column_2,...) VALUES (value_1,value_2,...);
Example 2: mysql insert
INSERT INTO table1 (col1, col2) VALUES (3, 'A string');
INSERT INTO table1 (col1) VALUES (3); -- col2 will be NULL if allowed
INSERT INTO table1 VALUES (3, 'A string'); -- all table1 columns
INSERT INTO table1 (col1, col2) SELECT value3, value1 FROM table2;