The CREATE BROADCAST TABLE RULE
syntax is used to create broadcast table rules for tables that need to be
broadcast (broadcast tables)
CreateBroadcastTableRule ::=
'CREATE' 'BROADCAST' 'TABLE' 'RULE' ifNotExists? tableName (',' tableName)*
ifNotExists ::=
'IF' 'NOT' 'EXISTS'
tableName ::=
identifier
tableName
can use an existing table or a table that will be created;ifNotExists
clause is used for avoid Duplicate Broadcast rule
error.-- Add t_province, t_city to broadcast table rules
CREATE BROADCAST TABLE RULE t_province, t_city;
ifNotExists
clauseCREATE BROADCAST TABLE RULE IF NOT EXISTS t_province, t_city;
CREATE
, BROADCAST
, TABLE
, RULE