×

sql · level 1 · unit 6 · lesson 2

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Name the columns, and the values follow that order.

Remembering the order of every column is hard. Instead, put a in brackets after the table name. The values then go in that order, whatever order the table uses.

Leave a column out of the list and its box is filled with NULL. That is handy when you do not know a value yet.

You can add several rows in one go. Put each row's values in their own brackets, with commas between the brackets.

INSERT INTO books (title, pages) VALUES ('Owl Post', 64);
SELECT * FROM books WHERE title = 'Owl Post';

With a column list, the values must follow the order of the list, not the table.