Skip to the content.
< PREVIOUS   NEXT >

DELETE

The DELETE statement is used to delete existing records in a table.

DELETE SYNTAX

DELETE FROM table_name
WHERE condition;

Be careful when deleting records in a table. Notice the WHERE clause in the DELETE statement. The WHERE clause specifies which record(s) should be deleted. If you omit the WHERE clause, all records in the table will be deleted.

EXAMPLE

Suppose there is a Table name as “CustomerComplaint” having CustomerID, CustomerName, ProductName Issue, City, PostalCode and Country as columns.



< PREVIOUS   NEXT >

HOME