Modify existing rows in a table.
Modifies existing rows in a table, optionally filtering with a WHERE clause. Without WHERE, all rows are updated -- often a mistake. SET clauses are evaluated left-to-right, which matters for interdependent column updates.
| Database System | Support Status | Since Version | Notes |
|---|---|---|---|
| MySQL | ✓ Supported | all | Standard |
| PostgreSQL | ✓ Supported | all | Standard |
| SQL Server | ✓ Supported | all | Standard + OUTPUT |
| Oracle | ✓ Supported | all | Standard + RETURNING |
| SQLite | ✓ Supported | all | Standard |
Basic DML for modifying rows.
Standard
Standard
Standard + OUTPUT
Standard + RETURNING
Standard