This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:delete [2009/11/30 15:41] tdo |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ====== Omnidex SQL: ====== | ||
| - | ===== Description ===== | ||
| - | |||
| - | Delete rows from a table according to specified criteria. | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | DELETE FROM tablespec | ||
| - | [WHERE < predicate-list | CURRENT > | ||
| - | [ < ON / OF > [ CURSOR ] cursor | ||
| - | [ WITH options ] | ||
| - | |||
| - | ===== Discussion ===== | ||
| - | |||
| - | == tablespec == | ||
| - | |||
| - | Required. table is the name of the table in the database that contains the rows to be deleted. | ||
| - | |||
| - | == WHERE predicate-list | CURRENT == | ||
| - | |||
| - | Optional. Caution! If omitted, ALL rows will be deleted from the specified table. | ||
| - | predicate-list - Criteria to determine which rows will be deleted. | ||
| - | CURRENT - Delete only the current row. | ||
| - | |||
| - | == [ON [CURSOR] cursor] == | ||
| - | |||
| - | Optional. The cursor on which to perform the delete. If omitted, the delete will be performed on the current cursor. | ||
| - | |||
| - | == [WITH options] == | ||
| - | |||
| - | Optional - Specify options to be used for this command. | ||
| - | |||
| - | ===== Examples ===== | ||
| - | |||
| - | ==== Simple ==== | ||
| - | |||
| - | > DELETE FROM CUSTOMERS WHERE CUSTOMER_NO = 1240 | ||
| - | |||
| - | {{page>:bottom_add&nofooter&noeditbtn}} | ||