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 Developer Center

V4.3.3

  • Overview
    • What is ODC?
    • Limitations
    • ODC console
    • Features
    • Architecture
  • Quick Start
    • Web ODC
      • Deploy Web ODC
      • Overview
      • Use Web ODC
    • Client ODC
      • Install Client ODC
      • Overview
      • Use Client ODC
  • Data Source Management
    • Create a data source
    • Data sources and project collaboration
    • Database O&M
      • Recycle bin management
      • Session management
      • Global variable management
  • SQL Development
    • SQL editing and execution
    • Perform PL compilation and debugging
    • Use the command-line window
    • Edit and export the result set of an SQL statement
    • Execution analysis
    • Generate test data
    • Database objects
      • Synonym objects
        • Manage synonyms
        • Overview
        • Create a synonym
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Trigger objects
        • Create a trigger
        • Overview
        • Manage triggers
      • View objects
        • Create a view
        • Manage views
        • Overview
      • Package objects
        • Manage program packages
        • Overview
        • Create a program package
      • Type objects
        • Create a type
        • Manage types
        • Overview
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Table objects
        • Overview
        • Create a table
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
  • Import and Export
    • Export schemas and data
    • Import schemas and data
  • Database Change Management
    • Batch database change management
    • SQL check specifications
    • Schema comparison
    • SQL window specification
    • Logical database change management
    • Online schema changes
    • Risk levels, risk identification rules, and approval processes
    • Database change management
    • Synchronize shadow tables
    • Project collaboration management
    • User Permission Management
      • Automatic authorization
      • Users and roles
  • Data Lifecycle Management
    • SQL plan task
    • Archive data
    • Clean up data
    • Partitioning Plan Management
      • Examples
      • Manage partitioning plans
      • Set partitioning strategies
  • Data Desensitization and Auditing
    • Desensitize data
    • Operation records
  • Notification Management
    • Overview
    • Manage notification rules
    • View notification records
    • Manage Notification Channel
      • View, edit, and delete a notification channel
      • Create a notification channel
      • Configure a custom channel
  • System Integration
    • Login integration
    • Approval integration
    • Bastion host integration
    • SQL approval integration
  • Deployment Guide
    • Deploy ODC in high-availability mode
    • Deployment overview
    • Deploy ODC in single-node mode
    • Preparations before deployment
    • Deployment verification
  • Upgrade Guide
    • Upgrade verification
    • Update high-avaliability ODC
    • Upgrade Overview
    • Update single-node ODC
    • Preparations before upgrade
    • Rollback after upgrade failed
  • Troubleshooting
    • ODC troubleshooting process
    • Collect Message
      • Query the index status in OceanBase Database V1.4.x to V3.2.x
      • View client ODC logs
      • Query the index status in OceanBase Database V4.x
      • Use tcpdump to capture packets
      • View the runtime environment and version information
      • Collect JVM runtime information
      • View ODC MetaDB data
      • View end-to-end ODC-related logs
      • View web ODC logs
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • Connection Information
      • Command-line window
      • DDL statement display
  • Release Note
    • V4.3
      • ODC V4.3.2
      • ODC V4.3.0
      • ODC V4.3.1
      • ODC V4.3.3
    • V4.2
      • ODC V4.2.4
      • ODC V4.2.3
      • ODC V4.2.2
      • ODC V4.2.1
      • ODC V4.2.0
    • V4.1
      • ODC V4.1.1
      • ODC V4.1.2
      • ODC V4.1.0
      • ODC V4.1.3
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0
    • V3.4
      • ODC V3.4.0
    • V3.3
      • ODC V3.3.3
      • ODC V3.3.2
      • ODC V3.3.1
      • ODC V3.3.0
    • V3.2
      • ODC V3.2.1
      • ODC V3.2.0
      • ODC V3.2.2
      • ODC V3.2.3

Download PDF

What is ODC? Limitations ODC console Features Architecture Deploy Web ODC Overview Use Web ODC Install Client ODC Overview Use Client ODC Create a data source Data sources and project collaboration Recycle bin management Session management Global variable management SQL editing and execution Perform PL compilation and debugging Use the command-line window Edit and export the result set of an SQL statement Execution analysis Generate test data Export schemas and data Import schemas and data Batch database change management SQL check specifications Schema comparison SQL window specification Logical database change management Online schema changes Risk levels, risk identification rules, and approval processes Database change management Synchronize shadow tables Project collaboration management Automatic authorization Users and roles SQL plan task Archive data Clean up data Examples Manage partitioning plans Set partitioning strategies Desensitize data Operation records Overview Manage notification rules View notification records View, edit, and delete a notification channel Create a notification channel Configure a custom channel Login integration Approval integration Bastion host integration SQL approval integration Deploy ODC in high-availability mode Deployment overview Deploy ODC in single-node mode Preparations before deployment Deployment verification Upgrade verification Update high-avaliability ODC Upgrade Overview Update single-node ODC Preparations before upgrade Rollback after upgrade failed ODC troubleshooting process Query the index status in OceanBase Database V1.4.x to V3.2.x View client ODC logs Query the index status in OceanBase Database V4.x Use tcpdump to capture packets View the runtime environment and version information Collect JVM runtime information View ODC MetaDB data View end-to-end ODC-related logs View web ODC logs Installation of client ODC Web ODC deployment and startup Connection Information Command-line window DDL statement display ODC V4.3.2 ODC V4.3.0 ODC V4.3.1 ODC V4.3.3 ODC V4.2.4 ODC V4.2.3 ODC V4.2.2 ODC V4.2.1 ODC V4.2.0 ODC V4.1.1 ODC V4.1.2 ODC V4.1.0 ODC V4.1.3 ODC V4.0.2 ODC V4.0.0 ODC V3.4.0 ODC V3.3.3 ODC V3.3.2 ODC V3.3.1 ODC V3.3.0
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 Developer Center
  3. V4.3.3
iconOceanBase Developer Center
V 4.3.3
  • V 4.4.2
  • V 4.4.1
  • V 4.4.0
  • V 4.3.4
  • V 4.3.3
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.4
  • V 4.2.3
  • V 4.2.2
  • V 4.2.1
  • V 4.2.0
  • V 4.1.3 and earlier

DDL statement display

Last Updated:2026-04-13 07:30:36  Updated
share
What is on this page
What do I do when the DDL statements are incomplete in the table structure?
Why are the displayed statements truncated when I check the DDL statements of a view or table on the view or table management page?

folded

share

What do I do when the DDL statements are incomplete in the table structure?

The existing DDL statements include those for querying indexes and constraints. You can execute the DBMS_METADATA.get_ddl or show create table statements to query the DDL statements.

Here are some examples:

-- DDL statement for querying table indexes
SELECT dbms_metadata.get_ddl('INDEX', 'indexname', 'username') from dual;
-- SQL statement for querying table comments
SELECT 'comment on table ' || 'table_name' || ' is ' || '''' || comments  || ''';'
FROM all_tab_comments where owner='USER1' AND table_name='T_1' ;
-- Add a table comment
comment on table T_1 is 'desc 2';

-- SQL statement for querying column comments
SELECT 'comment on column ' || 'table_name' || '.' || 'column_name' || ' is ' || '''' || comments  || ''';'
FROM all_col_comments where owner='USER1' AND table_name='T_1' ;
-- Add a column comment
comment on column T_1.ID is 'ID 3';

Why are the displayed statements truncated when I check the DDL statements of a view or table on the view or table management page?

This is because that the DDL tab of the database object management page calls the content of the text field in the all_views table. In versions earlier than OceanBase Database V2.2.70, if the content of the text field in the all_views table is too long, it will be truncated.

  • Method 1: Upgrade OceanBase Database to V2.2.70 or later. This issue has been solved in OceanBase Database V2.2.70 and later versions.

  • Method 2: Run the SHOW CREATE VIEW/TABLE statement to directly query the complete structure statements of the target view or table.

Previous topic

Command-line window
Last

Next topic

ODC V4.3.3
Next
What is on this page
What do I do when the DDL statements are incomplete in the table structure?
Why are the displayed statements truncated when I check the DDL statements of a view or table on the view or table management page?