Deletes the data at the current location of a cursor.
DELETE [ FROM table-spec ] WHERE CURRENT OF cursor-name table-spec - (back to Syntax) [ owner.]correlation-name cursor-name - (back to Syntax) identifier | hostvar
If a FROM clause is included, and a table owner is specified, table-spec must be unambiguously identifiable as a table name in the cursor.
DELETE WHERE CURRENT OF cur_employee
This form of the DELETE statement deletes the current row of the specified cursor. The current row is defined to be the last row fetched from the cursor.
The positioned DELETE statement can be used on a cursor open on a view as long as the view is updatable.
Changes effected by positioned DELETE statements are visible in the cursor result set, except where client-side caching prevents seeing these changes.