Overview
Displays the relationships between table groups and tables of the current tenant. Tables that are not part of a table group are not displayed.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TABLEGROUP_NAME | varchar(128) | NO | Table group name |
| OWNER | varchar(128) | NO | The name of the database to which the table belongs. |
| TABLE_NAME | varchar(256) | NO | Table name |
| SHARDING | varchar(20) | NO | The SHARDING attribute of the table group:
|
Sample query
In the sys tenant, query the association relationships of the table group named tblgroup1 in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_TABLEGROUP_TABLES WHERE tablegroup_name = 'tblgroup1';
The query result is as follows:
+-----------------+-----------+------------+----------+
| TABLEGROUP_NAME | OWNER | TABLE_NAME | SHARDING |
+-----------------+-----------+------------+----------+
| tblgroup1 | infotest | tbl1 | ADAPTIVE |
+-----------------+-----------+------------+----------+
1 row in set