Basic Insert
suggest changeINSERT INTO `table_name` (`field_one`, `field_two`) VALUES ('value_one', 'value_two');
In this example, table_name is the table that receives the row, field_one and field_two are the columns to set, and value_one and value_two are the values for those columns.
List the columns you insert into. If the table later gains a column, an INSERT that omits the column list can fail or write values into the wrong columns.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents