Basic Insert

suggest change
INSERT INTO `table_name` (`field_one`, `field_two`) VALUES ('value_one', 'value_two');

In this trivial example, table_name is where the data are to be added, field_one and field_two are fields to set data against, and value_one and value_two are the data to do against field_one and field_two respectively.

It’s good practice to list the fields you are inserting data into within your code, as if the table changes and new columns are added, your insert would break should they not be there

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents