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 applies only to OceanBase Database in Oracle 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 in which the index is located. |
| 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
DBA_IND_EXPRESSIONS: View all function-based indexes in the current tenant.
ALL_IND_EXPRESSIONS: View all function-based indexes that the current user can access.
For more information about function-based indexes, see Create an index.