Skip to content

Inserting rows

Handout

Adding rows with INSERT

INSERT adds a new row to a table. List the columns, then a matching set of VALUES:

INSERT INTO product (code, title, price, in_stock)
VALUES ('P04', 'Ruler', 1.20, 75);

Text goes in single quotes; numbers do not. The values must line up with the columns, in the same order.

INSERT adds a new row to the bottom of the table

Handout

Log in or create account

IGCSE & A-Level