Contents IndexDELETE statement DESCRIBE statement

User's Guide
   Part VI. SQL Anywhere Reference
     Chapter 43. Watcom-SQL Statements
      DELETE (positioned) statement

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

Usage

Embedded SQL, procedures, triggers, and batches.

The host-variable format is for Embedded SQL only.

Permissions

Must have DELETE permission on tables used in the cursor.

Side effects

None.

See also

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:

Example

Contents IndexDELETE statement DESCRIBE statement