Jump to content

Delete (SQL)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Turnstep (talk | contribs) at 18:00, 6 April 2005 (SQL stub - please expand). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A DELETE statement in SQL removes records in a relational database management system.

The DELETE statement has the following form:

DELETE FROM table_name [WHERE condition]

Any rows that match the WHERE condition will be removed from the table.


Examples

DELETE FROM mytable WHERE mycol > 100;