|
SQL INSERT statements allow you to add data to your tables. You can do this in do ways.
- Provide data by value
- Provide data by SELECTing from another table(s)
I will show you how to add data by value. The second method is through combining the syntax from the SELECT lesson with the INSERT statement syntax.
Lets say we want to add the following data to our table
5 4 Purple Medium Kitchen 20
To do this we will use an INSERT command. Again, once we have completed, we will want to execute a COMMIT; If you have not reviewed the commit, head over to the UPDATE
page.
|