Manage table attributes

2024-01-08 02:00:34  Updated

Overview

Database objects - Table objects - Manage table attributes - Overview

  1. After you log on to OceanBase Developer Center (ODC), click the name of the target connection on the ODC homepage to go to the corresponding connection management page.

  2. In the left-side navigation pane, click Table to get a list of tables.

  3. Double-click the name of a table in the table list to go to the table management page.

  4. Click Attribute in the top navigation bar to go to the Attribute tab.

    The Attribute tab displays the following table attributes:

    • Basic information

    • Column

    • Index

    • Constraints

    • Partition

    • DDL

Basic information

Image 699

In the left-side navigation pane of the Attribute tab, click Basic Info to view the basic information about the table.

Field Description
Table Name Displays the name of the table. You can modify the table name here.
Default Character Set Displays the character set that the table uses.
Default Sorting Rule Displays the sorting rule that the table uses.
Description Displays the description that you specified when you created the table. You can also modify the table description here.

The basic information page provides the following buttons.

Button Description
Edit Click Edit to modify the basic information.
Refresh Click Refresh to refresh the basic information.

Column information

1

In the left-side navigation pane of the Attribute tab, click Column to view the columns in the table. The navigation bar also provides the following buttons.

Button Description
Create Click + to add a field (or column) to the table.
Edit Click Edit to open the editing page where you can edit the selected field. You can modify Data Type , Primary Key , Non-empty , Default Value , and Comment , but cannot modify Field Name . You can also directly double-click a cell to edit it.
Delete Click Delete to delete the selected field.
Refresh Click Refresh to refresh the field information.
Filter Click Filter (to the right of Field Name ) to filter or search for fields.

Index information

2

In the left-side navigation pane of the Attribute tab, click Index to view the indexes on the table. The navigation bar also provides the following buttons.

Button Description
Create Click + to add an index to the table.
Edit Click Edit to modify the parameters in the Create Index dialog box that appears. You can modify Index Name , Index Range , Constraint Type , and Optional Field .
Delete Click Delete to delete the selected index.
Refresh Click Refresh to refresh the index information.
Filter Click Filter (to the right of Index Name ) to filter or search for indexes.

Note

An index cannot be modified after it is created.

Constraint information

3

In the left-side navigation pane of the Attribute tab, click Constraint to view the constraints on the table. The navigation bar also provides the following buttons.

Button Description
Create Click + to add a constraint to the table.
Edit Click Edit to edit the selected constraint.
Delete Click Delete to delete the selected constraint.
Refresh Click Refresh to refresh the constraint list.

Note

  • The buttons provided vary with the constraint method. If a button is dimmed out or not present in the navigation bar, it means that the constraint method does not support the corresponding action.

  • To view foreign key constraints on a table, you can query the all_constraints view in Oracle mode, or the information_schema.key_column_usage table in MySQL mode since OBServer V2.2.6.

  • OceanBase Database supports constraint checking only in Oracle mode.

Partition information

4

In the left-side navigation pane of the Attribute tab, click Partition to view the information about the partitions in the table. The information includes Partition Name , Order , Partitioning Method , Expression , Upper limit of the range , and Enumeration Value . In Oracle mode, Expression indicates the partitioning key. Partitioning Method indicates the partitioning method specified when the table was created. The information displayed varies with the partitioning method. The navigation bar also provides the following buttons.

Button Description
Create Click + to create a partition from an undefined range.
Edit Click Edit to edit the information of the selected partition.
Split Click Split to split a partition into smaller granules.
Delete Click Delete to delete the selected partition and destroy the data in the partition.
Refresh Click Refresh to refresh the partition list.
Filter Click Filter to filter partitions by partition name, order, partitioning method, expression, or upper limit of the range.

Note

In ODC V3.3.0 and later versions, you can view the partitions of table objects not necessarily under the SYS tenant.

DDL information

Image 702

In the left-side navigation pane of the Attribute tab, click DDL to view the DDL statements that define the table. You cannot edit these statements. Click Format in the toolbar to view the statements.

Contact Us