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.2.5

    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.2.5
    iconOceanBase Database
    SQL - V 4.2.5
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    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

    HELP

    Last Updated:2026-04-09 09:38:52  Updated
    Share
    What is on this page
    Purpose
    Syntax
    Parameters
    Examples

    folded

    Share

    Purpose

    Returns search results from the help tables. The search string can contain wildcard characters, such as the percent sign (%) and underscore (_).

    Note

    To use the HELP feature, you must load the help tables. Perform the following steps:

    1. Copy the fill_help_tables-ob.sql file to the tmp directory on the client.
    2. Log in to the sys tenant and execute the source /tmp/fill_help_tables-ob.sql statement.

    The search string can match one category, multiple topics, or a single topic:

    • View the list of top-level help categories:

      HELP 'contents';
      
    • View topics of a help category, for example, search for data types data types:

      HELP 'data_types';
      
    • For a specific help topic, you can use one or more associated keywords:

      HELP 'create table'
      

      The returned topics contain the following information:

      • name: the name of the topic.

      • description: the descriptive help text of the topic.

    Syntax

    HELP 'search_string';
    
    search_string:
       contents | data_types | theme
    

    Parameters

    Parameter
    Description
    contents The directory that contains all help information. You can search for help information by directory name.
    data_types The data type for which to view help information.
    theme The topic for which to view help information.

    Examples

    • View all help information.

      obclient> HELP 'contents';
      You asked for help about help category: "Contents"
      For more information, type 'help <item>', where <item> is one of the following
      categories:
         Data Types
         Functions
         Operator
         Escape character
         Data Definition
         Data Manipulation
         Transaction Statements
         Prepared Statements
         Compound Statements
         Administration
         Utility
      
    • View the data types under the Numeric Type category.

      obclient> HELP 'Numeric Types';
      You asked for help about help category: "Numeric Types"
      For more information, type 'help <item>', where <item> is one of the following
      topics:
         TINYINT
         BOOL,BOOLEAN
         SMALLINT
         MEDIUMINT
         INT
         INTEGER
         BIGINT
         FLOAT
         DOUBLE
         DOUBLE PRECISION
         FLOAT(p)
         DECIMAL
         NUMERIC
      
    • View the usage of the KILL statement.

      obclient> HELP 'KILL';
      Name: 'KILL'
      Description:
      
        Syntax:
      
        KILL [GLOBAL | LOCAL] [CONNECTION | QUERY] 'sessionid'
      
        Each connection to OceanBase Database runs in an independent thread. You can use the SHOW PROCESSLIST; statement to view the running threads and use the KILL thread_id statement to terminate a thread.
      
      • KILL CONNECTION is the same as KILL without a modifier: it terminates the thread with the specified thread_id.
      
      • KILL QUERY terminates the statement currently being executed by the connection, but keeps the connection intact.
      If you have the PROCESS privilege, you can view all threads. If you have the SUPER privilege, you can terminate all threads and statements. Otherwise, you can only view and terminate your own threads and statements.
      
    • View the syntax of the SELECT statement.

      obclient> HELP SELECT
      Name: 'SELECT'
      Description:
      
        This statement is used to query the contents of a table.
      
        Basic query
      
        Syntax:
      
        SELECT
          [ALL | DISTINCT]
            selectexpr [AS othername] [, selectexpr ...]
            [FROM table_references]
              [WHERE where_conditions]
          [GROUP BY group_by_list]
          [HAVING search_confitions]
          [ORDER BY order_list]
          [LIMIT {[offset,] rowcount | rowcount OFFSET offset}]
              [FOR UPDATE];
      

    Previous topic

    GRANT
    Last

    Next topic

    HANDLER
    Next
    What is on this page
    Purpose
    Syntax
    Parameters
    Examples