CREATE BROADCAST TABLE RULE
语法用于为需要广播的表(广播表)创建广播规则
CreateBroadcastTableRule ::=
'CREATE' 'BROADCAST' 'TABLE' 'RULE' ifNotExists? tableName (',' tableName)*
ifNotExists ::=
'IF' 'NOT' 'EXISTS'
tableName ::=
identifier
tableName
可使用已经存在的表或者将要创建的表;ifNotExists
子句用于避免 Duplicate Broadcast rule
错误。-- 将 t_province, t_city 添加到广播规则中
CREATE BROADCAST TABLE RULE t_province, t_city;
ifNotExists
子句创建广播规则CREATE BROADCAST TABLE RULE IF NOT EXISTS t_province, t_city;
CREATE
、BROADCAST
、TABLE
、RULE