Purpose
You can use this statement to drop a table group. You cannot drop a table group that is referenced by the TABLEGROUP attribute of a table.
Syntax
DROP TABLEGROUP [IF EXISTS] tablegroup_name;
Parameters
| Parameter | Description |
|---|---|
| tablegroup_name | The name of the table group. If the table group name does not exist and IF EXISTS is not specified, an error is returned. |
Examples
Drop a table group named
TableGroup1.obclient> DROP TABLEGROUP TableGroup1; Query OK, 0 rows affectedDrop a nonexistent table group named
TableGroup1.obclient> DROP TABLEGROUP TableGroup1; ERROR 5151 (42P01): tablegroup not existDrop a nonexistent table group named
TableGroup1withIF EXISTSspecified.obclient> DROP TABLEGROUP IF EXISTS TableGroup1; Query OK, 0 rows affected, 1 warning