The SQL DELETE Statement


The DELETE statement is used to delete rows in a table.

SQL DELETE Syntax

DELETE FROM table_name
WHERE some_column=some_value;


SQL DELETE Example

Assume we wish to delete the customer "Alfreds Futterkiste" from the  "Customers" table.

We use the following SQL statement:

Example

DELETE FROM Customers
WHERE CustomerName='Alfreds Futterkiste' AND ContactName='Maria Anders';

NoteNotice the WHERE clause in the SQL DELETE statement!
The WHERE clause specifies which record or records that should be deleted. If  you omit the WHERE clause, all records will be deleted!