Input SQL

Generates UPSERT, MERGE, bulk upsert, DO NOTHING, and RETURNING/OUTPUT variants.

Generated UPSERT / MERGE Queries

Paste SQL and click Generate to see UPSERT / MERGE statements.

Need to compare two schemas and generate migrations too?

SchemaLens diffs your SQL schemas, detects breaking changes, and generates safe forward + rollback migrations — all in your browser.

Try SchemaLens Free