UPDATE with WHERE
Changes the year on the row whose id is 14. Without the WHERE, an update would touch every row.
The numbers stay in this browser tab. Nothing you type is uploaded. Ads on this site are served by Google and may use cookies. Privacy policy.
UPDATE books SET year = 2026 WHERE id = 14;
01
How this number is made
Changes the year on the row whose id is 14. Without the WHERE, an update would touch every row. The names books, authors, title, year and id are examples. Point them at your own tables. This page does not connect to a database.
02
Questions
Which SQL dialect is this?
The statements here are ordinary SQL that PostgreSQL, SQLite and MySQL all accept in this simple form. Quoting rules differ once names have spaces.
03