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

Strategy Specification

The STRATEGIES keyword introduces a comma-separated list of function names or function signatures for the new operator class. Each element of this list is called a strategy specification and has the following syntax:

Read syntax diagramSkip visual syntax diagramStrategy Specification:
 
|--strategy_function-------------------------------------------->
 
>--+-----------------------------------------------------+------|
   '-(--input_type--,--input_type--+----------------+--)-'
                                   '-,--output_type-'
 
Element Description Restrictions Syntax
input_type Data type of an input parameter to the strategy function for which you intend to use a specific secondary-access method A strategy function accepts two input parameter and can have one optional output parameter Data Type
output_type Data type of the optional output parameter of the strategy function Optional output parameter for side-effect indexes Data Type
strategy_function Strategy function to associate with the specified operator class Must be listed in the order that the specified secondary-access method expects Database
Database Object Name

Each strategy_function is an external function. The CREATE OPCLASS statement does not verify that a user-defined function of the name you specify exists. However, for the secondary-access method to use the strategy function, the external function must be:

Optionally, you can specify the signature of a strategy function in addition to its name. A strategy function requires two input parameters and an optional output parameter. To specify the function signature, specify:

You can specify UDTs as well as built-in data types. If you do not specify the function signature, the database server assumes that each strategy function takes two arguments of the same data type and returns a BOOLEAN value.

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