Introduction to common features
SQL window editor
The toolbar in the SQL window editor provides the following features:

Feature | Description |
| Executes all SQL statements in the current SQL window. Use the keyboard shortcut Ctrl+Enter to execute all SQL statements. |
| Executes all selected SQL statements or the SQL statement on the current line. Use the keyboard shortcut Ctrl+Shift+Enter to execute the current statement. |
| Checks the SQL syntax. |
| Views the estimated execution plan (the result of an Click the Execution Plan button. On the Plan Details tab, click View Formatted Information to switch to the formatted display. |
| Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
| Reverts the script to the result of the previous operation. |
| After an undo operation, re-executes the operation that was undone. |
| Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
| A batch copy and transform tool for formatting copied row or column results when you query data. Paste the batch data into the SQL editor, select the data, and click the IN Value Transform button to convert it to the in('A','B') format.
|
| Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
| Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |
| Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
|
|
| Search for and switch databases by keyword. |
Table objects
Manage table properties
Basic information

On the Properties tab, the basic information page provides the following buttons:
Feature | Description |
Edit | Click to modify basic information. |
Refresh | Click to refresh basic information. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
Column information

The toolbar provides the following buttons:
Button | Description |
New | Click + to add a field (column) to the table. |
Delete | Click to delete the selected field. |
Refresh | Click to refresh the field information. |
Filter | Click the filter icon (to the right of Field Name and Type) to filter or search for fields. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
Index information

The toolbar provides the following buttons:
Button | Description |
New | Click + to add an index to the table. |
Delete | Click to delete the selected index. |
Refresh | Click to refresh the index information. |
Filter | Click the filter icon (to the right of Index Name and Scope) to filter or search for fields. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
Constraint information

OceanBase databases support different constraints in MySQL mode and Oracle mode. The information required for each constraint varies. Specify the required information on the page based on the selected constraint method.
The toolbar provides the following buttons:
Button | Description |
New | Click + to add a constraint to the table. |
Delete | Click to delete the selected constraint. |
Refresh | Click to refresh the constraint list. |
Filter | Click to filter or search for fields. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
Partitioning rules

On the Properties tab, click the Partitions tab in the navigation pane on the left to view information about the table's partitions. This information includes Partition Name, Order, Partitioning Method, Expression (displays the partition key in Oracle mode), Upper Bound, or Enumerated Value. The information displayed depends on the partitioning method set when the table was created. The toolbar provides the following buttons:
Button | Description |
Delete | Click to delete the selected partition. The data in the partition is also destroyed. |
Refresh | Click to refresh the partition list. |
Filter | Click to filter or search for information such as partition name, order, or upper bound. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
DDL information

The toolbar provides the following buttons:
Button | Description |
Format | Click to format the statement for easier viewing. |
Download | Click to download the DDL as a local file. |
Refresh | Refresh the partition list. |
Export | Click the export icon in the upper-right corner to export data from a single table. For more information, see Export schema and data. |
Manage table data

The toolbar on the Edit Result Set page provides the following buttons:
Feature | Description |
| Edits the currently displayed result set. In edit mode, you can perform operations such as Add Row, Delete, Copy Current Row, Cancel, and Confirm Changes. If autocommit is enabled, the transaction is automatically committed when you click this button. |
| Views the estimated execution plan (the result of an Click the Execution Plan button. On the Plan Details tab, click View Formatted Information to switch to the formatted display. |
| Views the full-link trace details for the execution of the current SQL statement. Use full-link diagnostics to quickly identify the execution duration of SQL statements or transactions at each node and locate abnormalities. Note Only OceanBase V4.1.0 and later support viewing full-link traces. |
| Enter a keyword in the search box to query for the desired results. |
| Filters the columns displayed on the page. |
| Displays a selected row of data in a table format. On the Column Mode page, you can switch between the previous and next rows. Column mode is useful for viewing row data in scenarios with many columns. Follow these steps:
|
View objects
The toolbar on the edit view page provides the following buttons:
Feature | Description |
Format | Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
Find/Replace | Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
Undo | Reverts the script to the result of the previous operation. |
Redo | After an undo operation, re-executes the operation that was undone. |
Case | Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
Indent | Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |
Comment | Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
IN Value Transform | Converts a format such as A B to ('A','B'). |
Previous | Returns to the Create View page, where you can continue to edit or modify the values on the Basic Information, Base Table Selection, and Field Selection tabs. |
Function objects
The toolbar on the edit function page provides the following buttons:
Feature | Description |
Confirm Changes | Click to apply the changes. |
| Downloads the SQL file for the function object. |
| Executes the current function. |
| Compiles the target function. |
| Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
| Reverts the script to the result of the previous operation. |
| After an undo operation, re-executes the operation that was undone. |
| Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
| A batch copy and transform tool for formatting copied row or column results when you query data. Paste the batch data into the SQL editor, select the data, and click the IN Value Transform button to convert it to the in('A','B') format.
|
| Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
| Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
| Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |
Stored procedure objects
The toolbar on the edit page provides the following features:
Feature | Description |
Confirm Changes | Click to apply the changes. |
| Downloads the SQL file for the stored procedure object. |
| Executes the current stored procedure. |
| Compiles the target stored procedure. |
| Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
| Reverts the script to the result of the previous operation. |
| After an undo operation, re-executes the operation that was undone. |
| Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
| A batch copy and transform tool for formatting copied row or column results when you query data. Paste the batch data into the SQL editor, select the data, and click the IN Value Transform button to convert it to the in('A','B') format.
|
| Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
| Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
| Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |
Trigger objects
The toolbar on the edit trigger page provides the following buttons:
Feature | Description |
Confirm Changes | Click to apply the changes. |
| Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
| Reverts the script to the result of the previous operation. |
| After an undo operation, re-executes the operation that was undone. |
| Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
| A batch copy and transform tool for formatting copied row or column results when you query data. Paste the batch data into the SQL editor, select the data, and click the IN Value Transform button to convert it to the in('A','B') format.
|
| Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
| Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
| Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |
Types
The toolbar on the create type page provides the following buttons:
Feature | Description |
| Enter content in the search box to search the script. Then, enter content in the replace box to replace the search results. |
| Reverts the script to the result of the previous operation. |
| After an undo operation, re-executes the operation that was undone. |
| Formats the selected SQL statements or all SQL statements in the current window. This includes operations such as indenting, adding line breaks, and highlighting keywords. |
| A batch copy and transform tool for formatting copied row or column results when you query data. Paste the batch data into the SQL editor, select the data, and click the IN Value Transform button to convert it to the in('A','B') format.
|
| Provides three options: Uppercase, Lowercase, and Capitalize. Converts the selected statement in the script to the corresponding format. |
| Provides two options: Add Comment and Remove Comment. Converts the selected statement in the script to a comment or back to an SQL statement. |
| Provides two options: Add Indent and Remove Indent. Adds or removes indents for the selected statement in the script. |

























































