Skip to content · ⁨Pular para o conteúdo⁩
English

Changing rows with UPDATE

UPDATE changes values in the rows that match a WHERE condition:

SET lists the columns to change. You can change several at once, separated by commas: SET price = 0.95, in_stock = 150.

Português

Alterando linhas com UPDATE

UPDATE altera valores nas linhas que correspondem a uma condição de WHERE:

UPDATE product SET price = 0.95 WHERE code = 'P02';

SET lista as colunas a alterar. Você pode alterar várias de uma vez, separadas por vírgulas: SET price = 0.95, in_stock = 150.

UPDATE com WHERE altera apenas a célula da linha correspondente

Handout · ⁨Material de apoio⁩

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

IGCSE, A-Level & AP