:
UPDATE [LOW_PRIORITY] [IGNORE] table_reference
SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
:
UPDATE [LOW_PRIORITY] [IGNORE] table_references
SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
[WHERE where_condition]
UPDATE . SET , , , . DEFAULT, . WHERE, , , , . WHERE . ORDER BY, . LIMIT , .
For syntax with multiple tables, UPDATE updates the rows in each table named table_references that satisfy the conditions. Each corresponding line is updated once, even if it meets the conditions several times. For multi-table syntax, you cannot use ORDER BY and LIMIT .
source
share