This shows you the differences between two versions of the page.
dev:sql:statements:delete:home [2010/07/02 18:12] tdo |
dev:sql:statements:delete:home [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL: DELETE ====== | ||
- | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | ===== Description ===== | ||
- | Delete rows from a table according to specified criteria. | ||
- | ===== Syntax ===== | ||
- | |||
- | DELETE FROM table_spec | ||
- | [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_no] == | ||
- | |||
- | 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}} |