| #define SQT_INDEX_2 | ( | INDEX_NAME, | |
| INSTANCE_NAME, | |||
| ... ) |
Defines an index with the specified names and columns.
| INDEX_NAME | The name of the index in the database. |
| INSTANCE_NAME | The name of the index instance. |
| ... | The names of the columns that form the index. An index can consist of up to 8 columns. |
This macro is similar to SQT_INDEX, except that it allows specifying custom index name and instance name for the index. This is useful to map the index to an existing index with the same columns in the database, without creating a new redundant index.
Example usage:
The class name of the index type will be generated by appending the instance name to the prefix IndexType_.