CREATE TABLEGROUP (Version 2.0)

Updated at:
Copy as MD

In AnalyticDB for MySQL, you can use the CREATE TABLEGROUP statement to create a standard table group.

Syntax

create tablegroup tablegroup_name;

Parameters

  • tablegroup_name: The name of the table group. The name must meet the following requirements:
    • The name must be no more than 64 characters long, start with a letter, and end with a letter or digit. It can contain letters, digits, and underscores (_), but cannot end with an underscore.
    • The name cannot contain double underscores (__).
    • The name must be unique within a database.
  • The system creates dimension table groups and names them dbname_dimension_group.

Example

The following statement creates a table group named trade to store transaction tables.
create tablegroup trade;

Related articles