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

Deleting Rows That Contain Collection Data Types (IDS)

When a row contains a column that is a collection data type (LIST, MULTISET, or SET), you can search for a particular element in the collection, and delete the row or rows in which the element is found.

For example, the following statement deletes any rows from the new_tab table in which the set_col column contains the element jimmy smith:

DELETE FROM new_tab WHERE 'jimmy smith' IN set_col

You can also use a collection variable to delete values in a collection column by deleting one or more individual elements in a collection. For more information, see Collection-Derived Table and the examples in Database Name and Example of Deleting from a Collection.

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