SHOW BROADCAST TABLE RULES
语法用于查询指定数据库中具有广播规则的表
ShowBroadcastTableRule ::=
'SHOW' 'BROADCAST' 'TABLE' 'RULES' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
; 如未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
broadcast_table | 广播表名称 |
SHOW BROADCAST TABLE RULES FROM sharding_db;
mysql> SHOW BROADCAST TABLE RULES FROM sharding_db;
+-----------------+
| broadcast_table |
+-----------------+
| t_a |
| t_b |
| t_c |
+-----------------+
3 rows in set (0.00 sec)
SHOW BROADCAST TABLE RULES;
mysql> SHOW BROADCAST TABLE RULES;
+-----------------+
| broadcast_table |
+-----------------+
| t_a |
| t_b |
| t_c |
+-----------------+
3 rows in set (0.00 sec)
SHOW
、BROADCAST
、TABLE
、RULES