Reading Rows: SELECT, WHERE and ORDER BY

SELECT asks a table for the columns you name, WHERE keeps only the rows that pass its test (with AND, OR and LIKE), ORDER BY sorts them and LIMIT caps how many come back, and in Python fetchone and fetchall read the answer, with sqlite3.Row giving rows you read by column name.

By

Updated

Cheat sheet: Reading Rows: SELECT, WHERE and ORDER BY
Category
FastAPI
Level
Apprentice
Tags
database, LIKE Predicate, order by, Query (sql), select, sql, sqlite, where