The upsert scripts are available from OSDN at Different versions of the scripts are available for different DBMSs. Each version of the scripts is in a single file, as follows:

  • pg_upsert.sql for PostgreSQL
  • md_upsert.sql for MariaDB and MySQL.
  • ss_upsert.sql for MS-SQL Server.

The SQL file can be placed wherever on the file system is convenient for inclusion in other scripts. See the Usage section for more information.