Skip to content · ⁨Pular para o conteúdo⁩
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.

Português

Adicionando linhas com INSERT

INSERT adiciona uma nova linha a uma tabela. Liste as colunas, depois um conjunto correspondente de VALUES:

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

Texto vai entre aspas simples; números não. Os valores devem alinhar-se com as colunas, na mesma ordem.

INSERT adiciona uma nova linha ao final da tabela

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP