DRAFT

Omnidex SQL: DELETE

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

table_spec

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
 
Back to top
dev/sql/statements/delete/home.txt ยท Last modified: 2016/06/28 22:38 (external edit)