skip to content
01, 7 chapters
start here

start here

what a database actually is, the real postgres running in this page, and your first query.

start part 01part 01 of 18, 7 chapters
  1. 01.01what a database actually isfiles you could write yourself, plus the four things you'd get wrong: crashes, concurrency, queries and rules.
  2. 01.02the relational modeleverything is a table, even the answer. codd's idea, and why it beat everything before it.
  3. 01.03postgres in your browsera real postgres 18 compiled to webassembly runs every query here. what it can do, and the short list of what it can't.
  4. 01.04your first querySELECT, FROM, a semicolon. what the result grid is telling you, and why you said what, not how.
  5. 01.05psql and a real serverinstalling postgres 18, the backslash commands worth knowing, and \x for rows too wide to read.
  6. 01.06reading an errorERROR, the caret, DETAIL, HINT and the five-character SQLSTATE. postgres errors say more than they look.
  7. 01.07SQL and its dialectsone standard, many accents. what's portable across postgres, mysql and sqlite, and how this book marks what isn't.