SQL CRUD Basics Part 4 — Delete.
In this final part of the SQL CRUD Basics series, we visit the all-mighty and powerful DELETE
command. Does that word frighten you? It should, as DELETE
will completely remove rows of that oh-so-important data from your database table. Without warning or question, it will be gone. Perhaps your goal is to remove all rows. Great, no problem. However, removing a specific row or set of rows – instead of them all – requires filtering with a WHERE
clause predicate, just the same as you would in SELECT
and UPDATE
statements. Continue reading to see DELETE
command examples for better understanding…