×

sql · level 1 · unit 6 · lesson 1

  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

adds a new row to a table.

So far you have only asked questions. Now you can change the data. Each complete instruction is a , and a query is one kind. INSERT is another: it adds a new row.

Write INSERT INTO, the table name, then and the new values in brackets. Give one value for every column, in the same order as the table: name, species, age.

An INSERT shows nothing, so add a SELECT underneath to check that your new row is there.

INSERT INTO pets VALUES ('Mabel', 'hen', 2);
SELECT * FROM pets WHERE species = 'hen';

Each time you press run the database starts fresh, so your changes never pile up.