Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > DELETE >

Using the ONLY Keyword (IDS)

If you use DELETE to remove rows of a supertable, rows from both the supertable and its subtables can be deleted. To delete rows from the supertable only, specify the ONLY keyword before the table name.

DELETE FROM ONLY(super_tab)
   WHERE name = "johnson"

Warning:
If you use the DELETE statement on a supertable and omit the ONLY keyword and WHERE clause, all rows of the supertable and its subtables are deleted.

You cannot specify the ONLY keyword if you plan to use the WHERE CURRENT OF clause to delete the current row of the active set of a cursor.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]