Data Manipulation Language (DML)
Updating Table Properties
Let’s look at that first. The syntax for updating the properties of a table in MySQL is
A simple implementation of the insert statement would be
As you can see from the above example, all students will have their student ID’s incremented by 100. Note that the WHERE clause is optional where the update applies to all rows in the table.
A more advanced example would contain a WHERE clause, an example of this follows
The above example modifies the name of the student whose student id is 101, to Kevin.