// five engines, one task

SQL dialect comparison

One task per page, written for SQL Server, PostgreSQL, MySQL, SQLite and Oracle. Each page gives you working SQL for every engine, a note on where they part ways, and a verdict on what survives a port and what has to be rewritten.

100 operations in 6 groups, five engines each.

Querying

Filtering, joining, paging and shaping result sets.

Inserting & updating

Adding, changing and removing rows, including upserts.

Tables & schema

Creating and changing tables, constraints and views.

Types & casting

Declaring types and converting between them.

Индексы

Creating, covering, partial and full-text indexes.

Sessions & admin

Transactions, locking, sessions and day-to-day administration.

// write it once, run it anywhere

Switch engines without relearning SQL

SQLly is a native SQL workbench for macOS, Windows and Linux. Its formatter and plan viewer work in all five dialects.