Passer au contenu
English
Changing rows with UPDATE

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

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

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

UPDATE student SET grade = 'A' WHERE id = 2 changes only Tom's grade

Fiche de cours

Se connecter ou créer un compte

IGCSE, A-Level & AP