|
This statement deletes specified rows from a database table.
DELETE FROM table-name [ alias-name ] [ WHERE search-condition ]
INSERT, UPDATE, and DELETE statements behave in an atomic manner. That is, if an insert, update, or delete of more than one row fails, then all insertions, updates, or deletes of previous rows by the same statement are rolled back.
The following statements deletes the row for first name Ellen from the person table in the sample database.
The following statement deletes the row for Modern European History (HIS 305) from the course table in the sample database:
|
Chapter contents
Prev topic: DELETE (positioned)
|