Remove rows from a table.
Removes rows from a table, optionally filtered by WHERE. Without WHERE, all rows are deleted (triggers fire per row in some databases). Use OUTPUT/RETURNING to capture deleted data before it is gone.
| 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 removing rows.
Standard
Standard
Standard + OUTPUT
Standard + RETURNING
Standard