notes

Idempotent SQL

Insert

Options

Upsert

Do an update to an existing item, or an insert if it doesn’t exist yet.
This can be done with a try/catch - the insert is done in the try, and the update is done in the catch.