Skip to content · ⁨Saltar al contenido⁩
English

Adding rows with INSERT

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

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

Español

Agregar filas con INSERT

INSERT añade una nueva fila a una tabla. Se listan las columnas, seguidas de un conjunto coincidente de VALUES:

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

El texto se coloca entre comillas simples; los números no. Los valores deben alinearse con las columnas, en el mismo orden.

INSERT añade una nueva fila en la parte inferior de la tabla

Handout · ⁨Material⁩

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP