OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.3.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.3.0
    iconOceanBase Database
    SQL - V 4.3.0
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    System functions supported for function-based indexes

    Last Updated:2026-04-15 08:30:01  Updated
    share
    What is on this page
    System functions without requirements on the data type
    System functions with requirements on the data type
    JSON functions
    CAST expressions

    folded

    share

    This topic lists the system functions that can be directly or conditionally used for function-based indexes.

    System functions without requirements on the data type

    TRIM ACOS REMAINDER FLOOR
    ATAN SUBSTRB CEIL ATAN2
    WIDTH_BUCKET RPAD COS TRANSLATE
    NULLIFb TAN TO_BINARY_FLOAT PAD
    SIN TO_BINARY_DOUBLE POSITION IS_JSON
    VSIZE LTRIM POWER ORAHASH
    RTRIM LENGTHC EMPTY_BLOB LPAD
    INSTRC TO_BLOB SQRT ASCIISTR
    NLSSORT EXP ORA_TRUNC TREAT
    LN TO_NUMBER SINH LOG
    HEXTORAW COSH ASIN FROM_TZ
    TANH TO_CHAR TO_NCHAR -
    TANH TO_CHAR TO_NCHAR -

    System functions with requirements on the data type

    The following system functions are prohibited in function-based indexes or generated columns when the data type is string and the default data format is used. If the time format is not the default one, there are requirements on the format parameter. For example, TO_DATE(expr, fmt) requires that the value of fmt contain the date.

    NEXT_DAY TO_DATE LAST_DAY ADD_MONTHS
    TO_TIMESTAMP TIMESTAMP_NVL MONTHS_BETWEEN TO_TIMESTAMP_TZ
    SYS_EXTRACT_UTC - - -

    JSON functions

    The following functions can be used in function-based indexes.

    SOUNDEX COALESCE ASCII NVL
    INSTR GREATEST LEAST UPPER
    LOWER ROUND LENGTHB RAWTOHEX
    UNISTR RAWTONHEX CHR TZ_OFFSET
    INITCAP INSTRB NANVL TO_SINGLE_BYTE
    TO_MULTI_BYTE TO_CLOB EMPTY_CLOB NLS_LOWER
    NLS_UPPER NVL2 TO_DSINTERVAL TO_YMINTERVAL
    NUMTODSINTERVAL NUMTOYMINTERVAL - -

    At present, the following function can be used only in predicates.

    JSON_EXISTS

    CAST expressions

    When the target or source type of a CAST expression is a time type, the CAST expression cannot be used in function-based indexes. The following table lists the detailed scenarios.

    Source type
    Target type
    Description
    TIMESTAMP/DATE TIMESTAMP WITH TIME ZONE/TIMESTAMP WITH LOCAL TIME ZONE Prohibited in function-based indexes
    string Time type Prohibited in function-based indexes
    Time type string Prohibited in function-based indexes

    Previous topic

    Drop an index
    Last

    Next topic

    System functions not supported for function-based indexes
    Next
    What is on this page
    System functions without requirements on the data type
    System functions with requirements on the data type
    JSON functions
    CAST expressions