CREATE BROADCAST TABLE RULE
Description
The CREATE BROADCAST TABLE RULE
syntax is used to create broadcast table rules for tables that need to be broadcast (broadcast tables)
Syntax
Grammar Railroad diagram
CreateBroadcastTableRule ::=
'CREATE' 'BROADCAST' 'TABLE' 'RULE' ifNotExists? tableName (',' tableName)*
ifNotExists ::=
'IF' 'NOT' 'EXISTS'
tableName ::=
identifier
Supplement
tableName
can use an existing table or a table that will be created;ifNotExists
clause is used for avoidDuplicate Broadcast rule
error.
Example
Create broadcast table rule
-- Add t_province, t_city to broadcast table rules
CREATE BROADCAST TABLE RULE t_province, t_city;
Create broadcast table rule with ifNotExists
clause
CREATE BROADCAST TABLE RULE IF NOT EXISTS t_province, t_city;
Reserved word
CREATE
, BROADCAST
, TABLE
, RULE
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .