Create a table

Updated at:
Copy as MD

AnalyticDB tables are divided into dimension tables and standard tables. For more information, see Glossary. You can create tables on the Data Management (DMS) page or using Data Definition Language (DDL) statements.

Notes

  • A table name must start with a letter, end with a letter or a number, and be no more than 64 characters long. The name can contain letters, numbers, and underscores (_).
  • A table name cannot contain double underscores (__).

Create a dimension table on the DMS page

  1. Log on to the AnalyticDB Data Management console.
  2. In the upper-left corner of the console, select the region where the database resides.
  3. To the right of the target database, click Log on to Database. On the DMS for AnalyticDB page, click Create > Table in the top menu bar.
  4. On the Create: Table page, configure the parameters.

    On the Create: Table page, configure the required parameters.

    Basic Information:

    Column Configuration:

    Partition Configuration:

    Advanced Properties:

  5. After you configure the parameters, click Save.

Create a standard table on the DMS page

  1. Log on to the AnalyticDB Data Management console.
  2. In the upper-left corner of the console, select the region where the database resides.
  3. To the right of the target database, click Log on to Database. On the DMS for AnalyticDB page, click Create > Table in the top menu bar.
  4. On the Create: Table page, configure the parameters.

    Basic Information:

    Column Configuration:

    Partition Configuration:

    Subpartitions are optional. This is an advanced feature. For more information, see Subpartitioned Tables.

    Advanced Properties:

  5. After you configure the parameters, click Save.

Create a table using a DDL statement

For more information, see CREATE TABLE.

References