October 2002
Beginner
1032 pages
23h 5m
English
The DELETE statement enables you to remove rows from tables. This statement specifies the table from which rows are to be deleted and criteria for the rows to deleted. Table 21.8 describes the components of a DELETE statement
| Component | Description |
|---|---|
| DELETE FROM | Specifies the table from which to delete rows |
| WHERE | Specifies the criteria that determines which rows are to be deleted |
To delete all rows from a table, you need only specify the name of the table from which to delete those rows. The following example shows how to delete all rows from the titles table:
DELETE FROM titles
NOTE
SQL Server offers another method for removing all rows from a table ...
Read now
Unlock full access