🧩 DML

INSERT, UPDATE, DELETE and MERGE patterns for day-to-day data changes.

Snippet
☆SELECT — Simplest form of a query
☆INSERT — Insert a single row
☆UPDATE — Update matching rows
☆DELETE — Delete matching rows
☆INSERT SELECT — Insert rows produced by a query
☆MERGE — Upsert rows: update when matched, insert when not
☆DELETE EXISTS — Delete rows that have a matching row in another table
☆UPDATE JOIN — Update rows filtered by a related table
☆INSERT ALL — Multi-row multi-table insert in a single statement

← Back to all categories