MySQL Tutorial

A database system used with PHP.

MySQL UPDATE

The MySQL UPDATE Statement

The UPDATE statement is used to modify the existing records in a table.

Syntax:

UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;

Warning! Be careful when updating records. If you omit the WHERE clause, ALL records will be updated!

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics