SQLite's `update` statement supports an `OR REPLACE` clause. ```sql UPDATE OR REPLACE t SET n = n+1; ``` See: https://www.sqlite.org/lang_update.html Initially reported in https://github.com/sqlpage/SQLPage/discussions/695