statement
UPDATE
Changes existing rows. Omitting WHERE targets every row; inspect the predicate before modifying data. Example target: PostgreSQL 17 and SQLite (local fixture tested).
Formal Syntax & Structure
sql syntaxsql
UPDATE table SET column = expression [WHERE condition]Working Example
Example Snippetsql
UPDATE orders SET amount = 130 WHERE id = 101;