DROP SHADOW RULE
语法用于为指定逻辑库删除影子库压测规则。
DropShadowRule ::=
'DROP' 'SHADOW' 'RULE' ifExists? ruleName ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
ruleName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 Shadow rule not exists
错误。DROP SHADOW RULE shadow_rule FROM shadow_db;
DROP SHADOW RULE shadow_rule;
ifExists
子句删除影子库压测规则DROP SHADOW RULE IF EXISTS shadow_rule;
DROP
、SHADOW
、RULE
、FROM