November 2003
Intermediate to advanced
816 pages
14h 53m
English
The DELETE command removes rows from a table.
The following code shows the basics of the DELETE syntax and the parameters of its use.
DELETE [ FROM ]
{
table_name WITH ( < table_hint_limited > [ ...n ] )
| view_name -- view must be updatable, delete may affect only one base
table in the view
| rowset_function_limited
}
[ FROM { < table_source > } [ ,...n ] ]
[ WHERE
{
< search_condition >
| CURRENT OF { [ GLOBAL ] cursor_name | cursor_variable_name }
}
]
[ OPTION ( < query_hint > [ ,...n ] ) ]
< table_source > ::=
table_name [ [ AS ] table_alias ] [ WITH ( < table_hint > [ ,...n ] ) ]
| view_name [ [ AS ] table_alias ]
| rowset_function [ [ AS ] table_alias ]
| subquery [ AS ] table_alias [ ( column_alias ...Read now
Unlock full access