Home › SQL Tutorial › SQL DELETE
SQL DELETE
Remove rows.
DELETE FROM removes rows. Like UPDATE, it needs a WHERE or it empties the whole table. There is no undo, so test with SELECT first.
Example code
DELETE FROM Customers
WHERE id = 5;
SELECT COUNT(*) AS total FROM Customers;