DROP TABLEGROUP (AUTO mode)

更新时间:
复制 MD 格式

Drops a tablegroup from an AUTO mode database. A tablegroup can only be dropped if it contains no tables.

This statement applies only to AUTO mode databases.

Syntax

DROP TABLEGROUP [IF EXISTS] tablegroup_name

Parameters

ParameterDescription
IF EXISTSOptional. Prevents an error from occurring if the specified tablegroup does not exist.
tablegroup_nameThe name of the tablegroup to drop.

Examples

Drop a tablegroup

DROP TABLEGROUP test_tg;

Drop a tablegroup if it exists

DROP TABLEGROUP IF EXISTS test_tg;