Create a table
A table is a promise about its rows. Primary keys, NOT NULL and CHECK make the database refuse rows that break it.
task
Create trips(id, rider, started_at, km): primary key id, rider and started_at required, km >= 0.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A table is a promise about its rows. Primary keys, NOT NULL and CHECK make the database refuse rows that break it.
Create trips(id, rider, started_at, km): primary key id, rider and started_at required, km >= 0.