SQLDELETEDMLtutorial
What is DELETE in SQL? Removing rows for beginners
DELETE is the SQL command for "remove rows from the table". Plain words: what to delete, why WHERE is non-negotiable, soft-delete vs hard-delete, the difference from TRUNCATE, and ON DELETE CASCADE. Before/after tables, common mistakes, a quick recap, and three practice tasks.
PreviousWhat is UPDATE in SQL? Modifying rows for beginnersNextUPSERT in PostgreSQL: INSERT ... ON CONFLICT in Practice
Related articles
Tasks on this topic
Apply a Discount to Action GamesDelete Tours Departing from MoscowSwap the Sex Values for All EmployeesAdd a Test User to the Bug TrackerSeed Test Orders with Different StatusesDelete Old Audit Log Entries
All problem sets →
DELETEis the command for removing rows from a table. Not "clearing values" — actually taking the row out.This article is currently in Russian. The full English translation is on the way.