Upsert
"Update or insert" — om raden finns: uppdatera. Om inte: skapa.
Postgres: INSERT ... ON CONFLICT (id) DO UPDATE. MySQL: INSERT ... ON DUPLICATE KEY UPDATE. SQL Standard: MERGE. Atomisk operation — undviker race conditions mellan separat SELECT + INSERT/UPDATE.