July 2010
Intermediate to advanced
840 pages
16h 33m
English
The DELETE FROM statement in SQL removes zero or more rows of one table. Interactive SQL tools will tell the user how many rows were affected by an update operation, and Standard SQL requires the database engine to raise a completion condition of “no data” if there are zero rows. There are two forms of DELETE FROM in SQL: positioned and searched. The positioned deletion is done with cursors; the searched deletion uses a WHERE clause like the search condition in a SELECT statement.
The syntax for a searched deletion statement is:
<delete statement: searched> :: = DELETE FROM <table name> [WHERE <search condition>]
The DELETE FROM clause simply gives the name of the updatable table or view ...
Read now
Unlock full access