UPDATE statement is used to modify data in a database table.
The following example creates and populates an Items table using the following SQL commands:
  CREATE TABLE Items ( ID INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(16) NOT NULL ); INSERT INTO Items( name ) VALUES( '$name1' );  | 
  
  UPDATE Items SET name='$name2' WHERE ID=$ID;  |