The CREATE SHARDING BROADCAST TABLE RULE
syntax is used to create broadcast table rules for tables that need to be broadcast (broadcast tables)
CreateBroadcastTableRule ::=
'CREATE' 'SHARDING' 'BROADCAST' 'TABLE' 'RULES' '(' tableName (',' tableName)* ')'
tableName ::=
identifier
tableName
can use an existing table or a table that will be createdCREATE SHARDING BROADCAST TABLE RULE
more than one time. When the broadcast table rule already exists but the broadcast table needs to be added, you need to use ALTER BROADCAST TABLE RULE
to modify the broadcast table rule-- Add t_province, t_city to broadcast table rules
CREATE SHARDING BROADCAST TABLE RULES (t_province, t_city);