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.6.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.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    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

    information_schema.TABLES

    Last Updated:2026-05-07 11:26:24  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    This view is available starting with V1.4.

    Purpose

    The information_schema.TABLES view displays information about tables.

    Columns

    Column
    Type
    Nullable
    Description
    TABLE_CATALOG varchar(512) NO The table catalog.
    TABLE_SCHEMA varchar(64) NO The database name.
    TABLE_NAME varchar(64) NO The table name.
    TABLE_TYPE varchar(64) NO The table type.
    ENGINE varchar(64) NO The storage engine type.
    VERSION bigint(0) unsigned NO The version.
    ROW_FORMAT varchar(10) NO The row format.
    TABLE_ROWS bigint(21) unsigned NO The number of rows in the table.
    AVG_ROW_LENGTH bigint(21) unsigned NO The average row length.
    DATA_LENGTH bigint(21) unsigned NO The data length, which is the storage space occupied by the table calculated by the macroblock size. Unit: Byte.

    Note

    p>For V4.3.x, this column is available starting with V4.3.5.

    MAX_DATA_LENGTH bigint(0) unsigned NO The maximum data length.
    INDEX_LENGTH bigint(0) unsigned NO The index length, which is the storage space occupied by the non-primary key indexes calculated by the macroblock size. Unit: Byte.

    Note

    p>For V4.3.x, this column is available starting with V4.3.5.

    DATA_FREE bigint(0) unsigned NO The size of the remaining space.
    AUTO_INCREMENT bigint(0) unsigned NO The current auto-increment value.
    CREATE_TIME datetime NO The creation time of the table.
    UPDATE_TIME datetime NO The last update time of the table.
    CHECK_TIME datetime NO The last check time of the table.
    TABLE_COLLATION varchar(32) NO The collation of the table.
    CHECKSUM bigint(0) unsigned NO The checksum.
    CREATE_OPTIONS varchar(255) NO The creation options.
    TABLE_COMMENT text NO The comment of the table.
    AUTO_SPLIT varchar(16) NO Indicates whether automatic partitioning is enabled for the table. Valid values:
    • FALSE (default): Automatic partitioning is disabled for the table.
    • TRUE: Automatic partitioning is enabled for the table.

    Note

    This column is available starting with V4.3.4.

    AUTO_SPLIT_TABLET_SIZE bigint(20) unsigned NO The automatic partitioning split threshold. When the value of the AUTO_SPLIT column is FALSE, the value of the AUTO_SPLIT_TABLET_SIZE column is 0.

    Note

    This column is available starting with V4.3.4.

    ORGANIZATION varchar(12) NO Indicates the table organization mode. Valid values:
    • HEAP: The table is organized in the heap mode.
    • INDEX: The table is organized in the index mode.

    Note

    For OceanBase Database V4.3.5, this column is available starting with V4.3.5 BP1.

    Sample query

    Query the details of the t1 table.

    SELECT * FROM information_schema.tables WHERE table_name = 't1'\G
    

    The query result is as follows:

    *************************** 1. row ***************************
             TABLE_CATALOG: def
              TABLE_SCHEMA: db_test
                TABLE_NAME: t1
                TABLE_TYPE: BASE TABLE
                    ENGINE: InnoDB
                   VERSION: NULL
                ROW_FORMAT: DYNAMIC
                TABLE_ROWS: 0
            AVG_ROW_LENGTH: 0
               DATA_LENGTH: 0
           MAX_DATA_LENGTH: NULL
              INDEX_LENGTH: 0
                 DATA_FREE: NULL
            AUTO_INCREMENT: NULL
               CREATE_TIME: 2025-02-24 10:32:10
               UPDATE_TIME: 2025-02-24 10:32:10
                CHECK_TIME: NULL
           TABLE_COLLATION: utf8mb4_general_ci
                  CHECKSUM: NULL
            CREATE_OPTIONS: NULL
             TABLE_COMMENT:
                AUTO_SPLIT: FALSE
    AUTO_SPLIT_TABLET_SIZE: 0
              ORGANIZATION: HEAP
    1 row in set
    

    Previous topic

    information_schema.TABLE_PRIVILEGES
    Last

    Next topic

    information_schema.USER_PRIVILEGES
    Next
    What is on this page
    Purpose
    Columns
    Sample query