Note
This view is available starting with V2.2.30.
Purpose
This view displays information about function-based indexes owned by the current user.
Applicability
This view is applicable only to OceanBase Database in Oracle-compatible mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| INDEX_NAME | VARCHAR2(128) | NO | The name of the index. |
| TABLE_NAME | VARCHAR2(128) | NO | The name of the table to which the index belongs. |
| COLUMN_EXPRESSION | VARCHAR2(1000) | NO | The expression of the function-based index. |
| COLUMN_POSITION | NUMBER(38) | NO | The position of the column in the index. |
Sample query
Query the information about function-based indexes owned by the current user.
obclient [SYS]> SELECT * FROM SYS.USER_IND_EXPRESSIONS;
The query result is as follows:
+----------------+------------+-------------------+-----------------+
| INDEX_NAME | TABLE_NAME | COLUMN_EXPRESSION | COLUMN_POSITION |
+----------------+------------+-------------------+-----------------+
| TBL2_FUNC_IDX1 | TBL2_FUNC | ("C1" + 1) | 1 |
+----------------+------------+-------------------+-----------------+
1 row in set
References
Query the information about all function-based indexes in the current tenant: DBA_IND_EXPRESSIONS
Query the information about all function-based indexes accessible to the current user: ALL_IND_EXPRESSIONS
For information about how to create and use function-based indexes, see Create an index.