This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:sql:statements:delete:home [2010/07/02 18:11] tdo |
dev:sql:statements:delete:home [2016/06/28 22:38] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
Delete rows from a table according to specified criteria. | Delete rows from a table according to specified criteria. | ||
- | |||
===== Syntax ===== | ===== Syntax ===== | ||
- | DELETE FROM tablespec | + | DELETE FROM table_spec |
[WHERE < predicate-list | CURRENT > | [WHERE < predicate-list | CURRENT > | ||
[ < ON / OF > [ CURSOR ] cursor | [ < ON / OF > [ CURSOR ] cursor | ||
Line 16: | Line 15: | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | == tablespec == | + | == table_spec == |
Required. table is the name of the table in the database that contains the rows to be deleted. | Required. table is the name of the table in the database that contains the rows to be deleted. | ||
Line 26: | Line 25: | ||
CURRENT - Delete only the current row. | CURRENT - Delete only the current row. | ||
- | == [ON [CURSOR] cursor] == | + | == [ON [CURSOR] cursor_no] == |
Optional. The cursor on which to perform the delete. If omitted, the delete will be performed on the current cursor. | Optional. The cursor on which to perform the delete. If omitted, the delete will be performed on the current cursor. |