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.1.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.1.0
    iconOceanBase Database
    SQL - V 4.1.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

    oceanbase.CDB_TAB_COLS_V$

    Last Updated:2025-12-09 07:09:36  Updated
    Share
    What is on this page
    Feature
    Fields

    folded

    Share

    Feature

    This view shows the column information of the table and view objects in all tenants.

    Fields

    Field
    Type
    Nullable
    Description
    CON_ID bigint(20) NO The ID of the tenant.
    OWNER varchar(128) NO The owner of a table, view, or cluster.
    TABLE_NAME varchar(128) NO The name of a table, view, or cluster.
    COLUMN_NAME varchar(128) NO The name of the column.
    DATA_TYPE varchar(128) NO The data type of the column.
    DATA_TYPE_MOD varchar(3) NO The data type modifier of the column.
    DATA_TYPE_OWNER varchar(128) NO The owner of the column data type.
    DATA_LENGTH BIGINT(21) NO The column length, in bytes.
    DATA_PRECISION bigint(20) 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 bigint(20) NO The number of digits on the right of the decimal point in a number.
    NULLABLE varchar(1) NO Indicates whether NULL is allowed for the column. The value indicates whether the column has NOT NULL constraints or whether the column belongs to the PRIMARY KEY.
    COLUMN_ID bigint(20) NO The serial number of the created column.
    DEFAULT_LENGTH bigint(20) NO The length of the default value for the column.
    DATA_DEFAULT varchar(262144) NO The default value of the column.
    NUM_DISTINCT bigint(20) NO The number of distinct values in the column.
    LOW_VALUE varchar(128) NO The low value in the column.
    HIGH_VALUE varchar(128) NO The high value in the column.
    DENSITY BIGINT(21) NO If you can create a histogram on the COLUMN_NAME column, this column shows the selectivity of the values with zero or one occurrence in the histogram. It does not represent the selectivity of values with two or more occurrences. If COLUMN_NAME is not available on the histogram, the value of this column is 1 or the same as that of NUM_DISTINCT.
    NUM_NULLS bigint(20) NO The number of NULL values in the column.
    NUM_BUCKETS bigint(20) NO The number of buckets in the histogram of the column.
    LAST_ANALYZED date NO The date on which the column was last analyzed.
    SAMPLE_SIZE bigint(20) NO The sample size used to analyze the column.
    CHARACTER_SET_NAME varchar(44) NO The name of the character set. Valid values:
  • CHAR_CS
  • NCHAR_CS
  • CHAR_COL_DECL_LENGTH bigint(0) NO The declared length of the column of the character type.
    GLOBAL_STATS varchar(3) NO Indicates whether statistics are collected or incrementally maintained. Valid values: YES and NO.
    USER_STATS varchar(3) NO Indicates whether the statistics are directly entered by the user. Valid values: YES and NO.
    NOTES varchar(80) NO Some additional attributes.
    AVG_COL_LEN BIGINT(21) NO The average column length, in bytes.
    CHAR_LENGTH bigint(20) NO The column length in characters. The value applies only to the following data types:
  • CHAR
  • VARCHAR2
  • NCHAR
  • NVARCHAR2
  • CHAR_USED varchar(1) NO Indicates whether the column uses BYTE length semantics (value: B) or CHAR length semantics (value: C), or whether the data type is none of the following ones (value: NULL):
  • CHAR
  • VARCHAR2
  • NCHAR
  • NVARCHAR2
  • V80_FMT_IMAGE varchar(3) NO Indicates whether the column data is in V8.0 image format. Valid values: YES and NO.
    DATA_UPGRADED varchar(3) NO Indicates whether the column data has been upgraded to the version format of the latest type (YES) or not upgraded (NO)
    HIDDEN_COLUMN varchar(3) NO Indicates whether the column is a hidden one. Valid values: YES and NO.
    VIRTUAL_COLUMN varchar(3) NO Indicates whether the column is a virtual one. Valid values: YES and NO.
    SEGMENT_COLUMN_ID bigint(0) NO The sequence number of the column in the segment.
    INTERNAL_COLUMN_ID bigint(0) NO The internal serial number of the column.
    HISTOGRAM varchar(15) NO Indicates the existence and type of the histogram. Valid values:
  • NONE
  • FREQUENCY
  • TOP-FREQUENCY
  • HEIGHT BALANCED
  • HYBRID
  • QUALIFIED_COL_NAME varchar(4000) NO The qualified column name.
    USER_GENERATED varchar(3) NO Indicates whether the column is a user-generated column (value: YES) or a system-generated column (value: NO).
    DEFAULT_ON_NULL varchar(3) NO Indicates whether the column has DEFAULT ON NULL semantics. Valid values: YES and NO.
    IDENTITY_COLUMN varchar(3) NO Indicates whether the column is an identifier column. Valid values: YES and NO.
    EVALUATION_EDITION varchar(128) NO The version of the edit object referenced in the Parse expression column.
    UNUSABLE_BEFORE varchar(128) NO The earliest version of the index that can be used as part of a query plan.
    UNUSABLE_BEGINNING varchar(128) NO The most recent version of the index that is not allowed to be used as part of a query plan.
    COLLATION varchar(100) NO The rule for sorting the column. It applies only to columns of character data types.
    COLLATED_COLUMN_ID bigint(0) NO The internal serial number of the column, for which this virtual column generates a collation key.

    Previous topic

    oceanbase.CDB_TAB_COLS
    Last

    Next topic

    oceanbase.CDB_TAB_PARTITIONS
    Next
    What is on this page
    Feature
    Fields