OceanBase logo

OceanBase

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

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

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

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

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    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.1
    iconOceanBase Database
    SQL - V 4.3.1
    SQL
    KV
    • 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

    USER_TAB_COLS

    Last Updated:2026-04-15 08:25:15  Updated
    share
    What is on this page
    Purpose
    Related views
    Columns

    folded

    share

    USER_TAB_COLS

    Purpose

    The USER_TAB_COLS view displays all columns of the tables and views accessible to the current user.

    This view differs from USER_TABLE_COLUMNS in that hidden columns are not filtered out.

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL mode.

    Related views

    • ALL_TAB_COLS

    • DBA_TAB_COLS

    Columns

    Column Type Nullable? Description
    TABLE_NAME VARCHAR2(128) NO The name of the table or view.
    COLUMN_NAME VARCHAR2(128) NO The name of the column.
    DATA_TYPE VARCHAR2(128) NO The data type of the column.
    DATA_TYPE_MOD VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    DATA_TYPE_OWNER VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    DATA_LENGTH NUMBER NO The length of the column in bytes.
    DATA_PRECISION NUMBER NO The decimal precision for the NUMBER data type and the binary precision for the FLOAT data type. The value is NULL for all other data types.
    DATA_SCALE NUMBER NO The number of digits on the right of the decimal point in a number.
    NULLABLE VARCHAR2(1) NO Indicates whether the column can be null.
    COLUMN_ID NUMBER NO The sequence number of the column.
    DEFAULT_LENGTH NUMBER NO The default length of the column.
    DATA_DEFAULT VARCHAR2(128) NO The default value of the column.
    NUM_DISTINCT NUMBER NO At present, this column is not supported and is NULL by default.
    LOW_VALUE VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    HIGH_VALUE VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    DENSITY NUMBER NO At present, this column is not supported and is NULL by default.
    NUM_NULLS NUMBER NO At present, this column is not supported and is NULL by default.
    NUM_BUCKETS NUMBER NO At present, this column is not supported and is NULL by default.
    LAST_ANALYZED DATE NO At present, this column is not supported and is NULL by default.
    SAMPLE_SIZE NUMBER NO At present, this column is not supported and is NULL by default.
    CHARACTER_SET_NAME VARCHAR2(44) NO At present, this column is not supported and is NULL by default.
    CHAR_COL_DECL_LENGTH NUMBER NO At present, this column is not supported and is NULL by default.
    GLOBAL_STATS VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    USER_STATS VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    AVG_COL_LEN NUMBER NO At present, this column is not supported and is NULL by default.
    CHAR_LENGTH NUMBER NO The character length of the column.
    CHAR_USED VARCHAR2(1) NO Indicates whether the column uses the byte length or the character length.
    V80_FMT_IMAGE VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    DATA_UPGRADED VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    HIDDEN_COLUMN VARCHAR2(3) NO Indicates whether the column is a hidden column. Valid values:
  • YES
  • NO
  • VIRTUAL_COLUMN VARCHAR2(3) NO Indicates whether the column is a virtual column. Valid values:
  • YES
  • NO
  • SEGMENT_COLUMN_ID NUMBER NO At present, this column is not supported and is NULL by default.
    INTERNAL_COLUMN_ID NUMBER NO At present, this column is not supported and is NULL by default.
    HISTOGRAM VARCHAR2(15) NO At present, this column is not supported and is NULL by default.
    QUALIFIED_COL_NAME VARCHAR2(4000) NO The qualified column name.
    USER_GENERATED VARCHAR2(3) NO At present, this column is not supported and is YES by default.
    DEFAULT_ON_NULL VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    IDENTITY_COLUMN VARCHAR2(3) NO At present, this column is not supported and is NULL by default.
    EVALUATION_EDITION VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    UNUSABLE_BEFORE VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    UNUSABLE_BEGINNING VARCHAR2(128) NO At present, this column is not supported and is NULL by default.
    COLLATION VARCHAR2(100) NO At present, this column is not supported and is NULL by default.
    COLLATED_COLUMN_ID NUMBER NO At present, this column is not supported and is NULL by default.

    Previous topic

    USER_TAB_COL_STATISTICS
    Last

    Next topic

    USER_TAB_COLUMNS
    Next
    What is on this page
    Purpose
    Related views
    Columns