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

  • Topics Overview
  • Overview
    • What is ODC?
    • Features
    • Architecture
    • Limitations
    • ODC console
  • Quick Start
    • Client ODC
      • Overview
      • Install Client ODC
      • Use Client ODC
    • Web ODC
      • Overview
      • Deploy Web ODC
      • Use Web ODC
  • Data Source Management
    • Create a data source
    • Data sources and project collaboration
    • Database O&M
      • Session management
      • Global variable management
      • Recycle bin management
  • SQL Development
    • Edit and execute SQL statements
    • 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
    • System settings
    • Database objects
      • Table objects
        • Overview
        • Create a table
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Materialized view objects
        • Overview
        • Create a materialized view
        • Manage materialized views
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
  • Import and Export
    • Import schemas and data
    • Export schemas and data
  • Database Change Management
    • Manage user permissions
      • Users and roles
      • Automatic authorization
      • User permission management
    • Project collaboration management
    • Risk levels, risk identification rules, and approval processes
    • SQL check specifications
    • SQL window specification
    • Database change management
    • Manage changes to logical databases
    • Batch database change management
    • Online schema changes
    • Synchronize shadow tables
    • Schema comparison
  • Data Lifecycle Management
    • Data archiving
    • Data cleanup
    • Manage partitioning plans
      • Manage partitioning plans
      • Set partitioning strategies
      • Examples of partitioning strategies
    • SQL plan task
  • Data Masking and Auditing
    • Desensitize data
    • Operation records
  • Notification Management
    • Overview
    • View notification records
    • Manage notification channels
      • Create a notification channel
      • View, edit, and delete a notification channel
      • Configure a custom channel
    • Manage notification rules
  • System Integration
    • Login integration
    • Approval integration
    • SQL approval integration
    • Bastion host integration
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deploy ODC in single-node mode
    • Deploy ODC in high-availability mode
    • Deployment verification
  • Upgrade Guide
    • Upgrade Overview
    • Preparations before upgrade
    • Update single-node ODC
    • Update high-avaliability ODC
    • Upgrade verification
    • Rollback after upgrade failed
  • Best Practices
    • Tips for SQL development
    • Explore ODC team workspaces
    • Understanding real-time SQL diagnostics for OceanBase AP
    • OceanBase historical database solutions
    • ODC SQL check for automatic identification of high-risk operations
    • Integration with ODC enterprise-level account system
    • Manage and modify sharded databases and tables via ODC
    • Data masking and control practices
    • Enterprise-level control and collaboration: Safeguard every database change
  • Troubleshooting
    • ODC troubleshooting process
    • Collect message
      • View the runtime environment and version information
      • View web ODC logs
      • View client ODC logs
      • View end-to-end ODC-related logs
      • View ODC MetaDB data
      • Query the index status in OceanBase Database V4.x
      • Query the index status in OceanBase Database V1.4.x to V3.2.x
      • Collect JVM runtime information
      • Use tcpdump to capture packets
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • Connection Information
      • Command-line window
      • DDL statement display
  • Common features
  • Release Notes
    • V4.4
      • ODC V4.4.0
    • V4.3
      • ODC V4.3.4
      • ODC V4.3.3
      • ODC V4.3.2
      • ODC V4.3.1
      • ODC V4.3.0
    • 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.3
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
    • 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.3
      • ODC V3.2.2
      • ODC V3.2.1
      • ODC V3.2.0

Download PDF

Topics Overview What is ODC? Features Architecture Limitations ODC console Overview Install Client ODC Use Client ODC Overview Deploy Web ODC Use Web ODC Create a data source Data sources and project collaboration Session management Global variable management Recycle bin management Edit and execute SQL statements 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 System settings Import schemas and data Export schemas and data Users and roles Automatic authorization User permission management Project collaboration management Risk levels, risk identification rules, and approval processes SQL check specifications SQL window specification Database change management Manage changes to logical databases Batch database change management Online schema changes Synchronize shadow tables Schema comparison Data archiving Data cleanup Manage partitioning plans Set partitioning strategies Examples of partitioning strategies SQL plan task Desensitize data Operation records Overview View notification records Create a notification channel View, edit, and delete a notification channel Configure a custom channel Manage notification rules Login integration Approval integration SQL approval integration Bastion host integration Deployment overview Preparations before deployment Deploy ODC in single-node mode Deploy ODC in high-availability mode Deployment verification Upgrade Overview Preparations before upgrade Update single-node ODC Update high-avaliability ODC Upgrade verification Rollback after upgrade failed Tips for SQL development Explore ODC team workspaces Understanding real-time SQL diagnostics for OceanBase AP OceanBase historical database solutions ODC SQL check for automatic identification of high-risk operations Integration with ODC enterprise-level account system Manage and modify sharded databases and tables via ODC Data masking and control practices Enterprise-level control and collaboration: Safeguard every database change ODC troubleshooting process View the runtime environment and version information View web ODC logs View client ODC logs View end-to-end ODC-related logs View ODC MetaDB data Query the index status in OceanBase Database V4.x Query the index status in OceanBase Database V1.4.x to V3.2.x Collect JVM runtime information Use tcpdump to capture packets Installation of client ODC Web ODC deployment and startup Connection Information Command-line window DDL statement display Common features ODC V4.4.0 ODC V4.3.4 ODC V4.3.3 ODC V4.3.2 ODC V4.3.1 ODC V4.3.0 ODC V4.2.4
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.4.0
iconOceanBase Developer Center
V 4.4.0
  • 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

Edit and export the result set of an SQL statement

Last Updated:2026-04-07 10:00:35  Updated
share
What is on this page
Background information
Edit the result set
Export the result set
References

folded

share

Background information

After you execute an SQL statement in the SQL window of the OceanBase Developer Center (ODC) console, you can view, edit, and export the execution result on the result tab.

Edit the result set

Example: On the result tab, insert data into the employee table in the odc_test database.

Parameter Example value
Project name odc_4.2.0
Database name odc_test
Table name employee
  1. In the SQL window, write and execute an SQL statement to query data in the employee table.

    1

    SELECT `emp_no`, `birthday`, `name` FROM `employee`;
    
  2. On the result tab shown in the preceding figure, click the Edit icon to edit the result set.

    The navigation bar of the result tab also provides the following icons.

    Icon Description
    Edit Click Edit to enable editing mode for the current result set. The editing mode supports the following operations: Add, Copy Current Row, Delete, Cancel, Confirm Modification, which submits a transaction when autocommit is enabled, and Modify and Submit, which is displayed when autocommit is disabled. In editing mode, you can either double-click the target data to directly modify it or click the preceding icons for convenient operations. When you edit a cell, you can right-click the cell and choose Copy or Set to Null from the context menu.

    Note

    The ResultMetaData is obtained during the execution of an SQL statement to indicate whether the result set can be edited.
    • If the result set cannot be edited, the Edit icon is hidden and a prompt is displayed indicating that the result set cannot be edited.
    • If the result set can be edited, the Edit icon is available and you can click it to go to the result set editing page. You can edit result sets in single-table and single-view queries.
    • However, result sets that involve the SET and ENUM fields cannot be edited.
    Plan Click this icon to view the actual resource consumption and execution plan of an executed SQL statement. This allows you to evaluate the performance of the statement.
    End-to-end Trace View the end-to-end traces recorded during the execution of the current SQL statement. You can quickly learn the execution time of an SQL statement or transaction on each node based on the end-to-end traces, to facilitate exception locating.

    Note

    You can view end-to-end traces of only OceanBase Database V4.1.0 and later.

    Back to Start Click this icon to go back to the first page.
    Previous Click this icon to go to the previous page.
    Next Click this icon to go to the next page.
    Jump to Bottom Click this icon to go to the last page.
    Search Enter a keyword in the search box to search for the desired results.
    Download Data Click this icon to export query results.
    Columns Click this icon to select the columns to be displayed on the page.
    Column Mode Click this icon to display the selected data row in the form of a table. On the Column Mode tab, you can switch to the previous or next row. The column mode makes it easier to view data in a row that has many columns. Procedure:
    1. Select the data that you want to view and click Column Mode Column Mode.
    2. On the Column Mode tab, click the left or right arrow to switch between the column values of adjacent rows.
    3. Hover the pointer over a value field and click the zoom-in icon Zoom to view the details.
    4. In the table on the Column Mode tab, you can view the comments for a column in the Remarks column. Perform the following steps to modify the comments:
    a. In the left-side navigation pane, right-click the target table and select View Table Structure to go to the Attribute tab.
    b. In the left-side navigation pane of the Attribute tab, click the Column tab.
    c. Select a field and click the Edit icon. The field editing dialog box appears.
    d. In the Comment field, edit the comments, and click OK.
    e. In the SQL Confirmation dialog box, click Execute.
    f. View the modified comments on the Column Mode tab.

    Notice

    You cannot edit a result set that contains the SET or ENUM field type.

  3. Click the plus sign (+) to add a row and edit data.

    2

  4. Click Modify and Submit.

    Note

    If the current connection uses the shared session mode, the submitted modifications take effect on all windows.

  5. In the SQL Confirmation dialog box, click Execute.

    3

  6. The edited data is added to the result tab.

    4

    You can perform the following operations on a result set to facilitate routine development.

    Operation Description
    Select required data You can select the required data of a result set and copy the data to an external file by using hotkeys. You can also click a field name or row ID to select an entire row or column. You can also click Export in the toolbar to export data of a result set to a local file.
    Select rows and columns
    • You can select consecutive rows or columns while holding the Shift key.
    • You can select inconsecutive rows or columns while holding the Ctrl or Command key.
    Right-click a cell You can right-click a cell and select Copy or Export to Clipboard to directly export the data into an external file.
    Right-click a row ID You can right-click a row ID and select Copy Row, Freeze this row, Unlock all frozen rows, or Export to Clipboard.
    • Copy Row: Select this option to copy the selected row.
    • Freeze this row: Select this option to freeze the selected row and pin it to the top. You can freeze multiple rows. The rows under the table header and frozen rows can be vertically scrolled.
    • Unlock all frozen rows: Select this option to unfreeze all frozen rows.
    • Export to Clipboard: Select this option to output the entire row to the clipboard in the SQL or CSV format.
    Zoom in If the data in a cell is excessively long and cannot be fully displayed, you can move the pointer over the cell and click the zoom-in icon at the right end of the cell. In the window that appears, view the data in full.

    Note

    LOBs are displayed in text by default. You can convert a LOB into the hexadecimal format and download the LOB to a local device.

    View BLOBs On the result tab:
    • In Oracle compatible mode, you can directly edit text data of the CLOB, BLOB, or RAW type, edit hexadecimal data, and upload files. An uploaded file cannot exceed 2 MB in the text format, 200 KB in the hexadecimal format, and 20 MB in the picture format.
    • In MySQL compatible mode, you can directly edit text data of an XLOB type such as BLOB, MEDIUMBLOB, or TINYBLOB, edit hexadecimal data, and upload files.
    Right-click the tab name of a result tab For example, you can right-click the tab name of the Result 1 tab and click Pin in the context menu to pin the tab, so that it remains displayed. In this way, when you execute a new query, a new result tab appears but does not overwrite the pinned result tab. This allows you to compare the query results. Click Unpin to unpin a result tab.
    Filter, sort, and search for data Each field name in the result set is provided with a filter icon, a sort icon, and a search icon. You can use them to filter, sort, and search for data in a single column.
    Drag the column name You can adjust the order of fields by dragging column names in a result set.
    Adjust the column width You can adjust the column width by dragging the column edge.
    Display the field type and remarks in the status bar You can click a field in the result set to display the type and remarks of this field in the status bar at the bottom of the page.

Export the result set

Example: Export the employee table as an EXCEL file to your local disk.

  1. In the result set, click export.

    5

  2. In the New Export Result Set panel, specify the information of the export task and click New.

    6

    Parameter Description
    Query SQL Write a query SQL statement to select the data to export.
    Maximum Number of Rows in Result Set The number of rows to export is no longer limited by the query window. You can define the number of rows to export.
    File Name Enter the name of the exported file.
    File Format You can export the query result as a CSV, SQL, or EXCEL file.
    • To export an SQL file, specify Query SQL, Maximum Number of Rows in Result Set, File Name, File Format (to SQL), File Encoding, Data Desensitization, and SQL File Settings (such as Table Name).
    • To export a CSV file, specify Query SQL, Maximum Number of Rows in Result Set, File Name, File Format, File Encoding, Data Desensitization, and CSV Settings (such as Include Column Header, Empty string to null value, Field Separator, Text Identifier, and Line Break). You can use EXCEL to open the exported CSV file.
    • To export an EXCEL file, specify Query SQL, Maximum Number of Rows in Result Set, File Name, File Format, File Encoding, Data Desensitization, and Excel File Settings (such as Include Column Header and Export SQL to another Sheet). When you export an EXCEL file, you can define whether to include column headers and whether to export query SQL statements.
    File Encoding Specify the file encoding format.
    Excel File Settings Specify whether to export column headers and whether to export SQL statements to another sheet.
  3. On the Ticket-Export Result Set tab, click View in the Actions column of the task.

    7

  4. In the Task Details panel, click Download.

    8

  5. View the exported employee_excel file in your local disk.

    9

References

  • Write and execute an SQL statement

  • Perform PL compilation and debugging

  • Use the command-line window

  • Analyze an SQL statement

  • Generate test data

  • Database change management

  • Manage partitions

  • Synchronization of shadow tables

  • Online schema changes

Previous topic

Use the command-line window
Last

Next topic

Execution analysis
Next
What is on this page
Background information
Edit the result set
Export the result set
References