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
Create a table group named
Table_Group1.obclient> DROP TABLEGROUP Table_Group1; Query OK, 0 rows affectedDrop a nonexistent table group named
Table_Group1.obclient> DROP TABLEGROUP Table_Group1; ERROR 5151 (42P01): tablegroup not existDrop a nonexistent table group named
Table_Group1withIF EXISTSspecified.obclient> DROP TABLEGROUP IF EXISTS Table_Group1; Query OK, 0 rows affected, 1 warning