Create a table group

Updated at:
Copy as MD

A table group is a collection of related data tables. AnalyticDB for MySQL uses table groups to manage these related tables.

Note

Creating an AnalyticDB for MySQL database automatically creates a dimension table group.

Naming conventions

  • A table group name must start with a letter, contain only letters, digits, and underscores (_), and end with a letter or a digit. The name must be 64 characters or less.
  • A table group name cannot contain double underscores (__).
  • A table group name must be unique within a database.

Create a table group with the DMS console

  1. Log on to the AnalyticDB for MySQL console. For instructions, see AnalyticDB Console.
  2. In the upper-left corner of the console, select a region.
  3. Click Log on to Database next to your target database to open the DMS for AnalyticDB page. The name of the system-created dimension table group, such as ads_sz_test_dimer, appears in the Table Group drop-down list in the left-side navigation pane. Expand the Table tab to view the dimension tables in the table group.
  4. In the top menu bar, choose Create > Table Group.
  5. In the Create Table Group dialog box, enter a Table Group Name.
  6. Click Submit to create a common table group.

Create a table group with a DDL statement

CREATE TABLEGROUP (Version 2.0)