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

DROP OPCLASS

Use the DROP OPCLASS statement to remove an existing operator class from the database.

Only Dynamic Server supports this statement, which is an extension to the ANSI/ISO standard for SQL.

Syntax

Read syntax diagramSkip visual syntax diagram>>-DROP OPCLASS--+------------+--opclass--RESTRICT-------------><
                 '- owner-- .-'
 
Element Description Restrictions Syntax
opclass Name of operator class to be dropped Must have been created by a previous CREATE OPCLASS statement Identifier
owner Name of opclass owner Must own the operator class Owner Name

Usage

You must be the owner of the operator class or have the DBA privilege to use the DROP OPCLASS statement.

The RESTRICT keyword causes DROP OPCLASS to fail if the database contains indexes defined on the operator class that you plan to drop. Therefore, before you drop the operator class, you must use the DROP INDEX statement to drop any dependent indexes.

The following DROP OPCLASS statement drops an operator class called abs_btree_ops:

DROP OPCLASS abs_btree_ops RESTRICT

Related Information

Related statement: CREATE OPCLASS, DROP INDEX

For information on how to create or extend an operator class, see IBM Informix User-Defined Routines and Data Types Developer's Guide.

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