Services Work Learn About Contact
0/9
Lesson 5 of 9

UPDATE & DELETE

UPDATE changes existing data. DELETE removes data. Always use WHERE with UPDATE and DELETE, or you will affect every row in the table!

SQL
-- Update a specific row
UPDATE users 
SET age = 26, country = 'Denmark' 
WHERE id = 1;

-- Delete a specific row
DELETE FROM users WHERE id = 5;

-- DANGER: This deletes ALL rows!
-- DELETE FROM users;
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed SQL!

You finished all 9 lessons and quizzes. You now know the basics of SQL.