DELETE STATEMENT

Description

The DELETE statement deletes rows from a table, nickname, or view, or the underlying tables, nicknames, or views of the specified fullselect.

Click here to navigate to the IBM DB2 docs page for this syntax.

Grammar Syntax

Navigate to the following pages to get more details about the translation spec for the subsections of the DELETE STATEMENT grammar.

Positioned Deleted

Description

The Positioned DELETE form is used to delete exactly one row (as determined by the current position of a cursor).

Grammar Syntax

IBM DB2

DELETE FROM table1 
WHERE CURRENT OF cursor1

Snowflake

-- ** MSC-ERROR - MSCEWI5009 - POSITIONED DELETE IS NOT SUPPORTED. **
--DELETE FROM table1
--WHERE CURRENT OF cursor1
  1. MSCEWI5009: POSITIONED UPDATE IS NOT SUPPORTED.

Last updated

Was this helpful?