Collection Contents Index DELETE statement DESCRIBE statement [ESQL] pdf/chap9.pdf

Reference Manual
   CHAPTER 9. SQL Statements     

DELETE (positioned) statement [ESQL] [SP]


Function 

To delete the data at the current location of a cursor.

Syntax 

DELETE [ FROM table-spec ]
...WHERE CURRENT OF cursor-name

Parameters 

cursor-name: identifier or host-variable

table-spec: [ owner.]correlation-name

owner: identifier

Permissions 

Must have DELETE permission on tables used in the cursor.

Side effects 

None.

See also 

UPDATE statement

UPDATE (positioned) statement

INSERT statement

PUT statement

Description 

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.

Name resolution 

The table from which rows are deleted is determined as follows:

Standards and compatibility 

Example 


Collection Contents Index DELETE statement DESCRIBE statement [ESQL] pdf/chap9.pdf