sqlstreak

SQL errors, explained and fixed

Paste-worthy answers to the error messages you actually hit. Each page shows the exact PostgreSQL and SQLite message, why it happens, and a broken and fixed query you can run right on the page. Every example is tested on both databases.

Queries

Joins and grouping

Types and values

Changing data

PostgreSQL error messages, A–Z

Exactly as PostgreSQL prints them (after ERROR:). Each was produced by the real engine when this page was built.

SQLite error messages, A–Z

Exactly as SQLite prints them. Each was produced by the real engine when this page was built.