Caffeinated Coder
Book an appointment
Lesson 06 · SQL

INSERT, UPDATE and DELETE

SELECT only reads a table. Three SQL commands change it: INSERT adds rows, UPDATE changes values in rows already there, and DELETE removes rows. Follow all three through a small library's books table, see how WHERE picks the rows a change touches, read the reply that counts them (INSERT 0 1, UPDATE 1, DELETE 2), and learn why a missing WHERE changes every row and how BEGIN and ROLLBACK let you take a change back.

12 min11 steps5 questionsBeginner
Fig 6 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.