复古 护眼 海天 深邃 暗黑 默认

DROP SHADOW RULE

描述

DROP SHADOW RULE 语法用于从当前逻辑库中删除影子库压测规则。

语法定义

DropShadowRule ::=
  'DROP' 'SHADOW' 'RULE' ifExists? ruleName (',' ruleName)*

ifExists ::=
  'IF' 'EXISTS'

ruleName ::=
  identifier

补充说明

  • ifExists 子句用于避免 Shadow rule not exists 错误。

示例

  • 删除影子库压测规则
DROP SHADOW RULE shadow_rule;
  • 删除多个影子库压测规则
DROP SHADOW RULE shadow_rule, shadow_rule_1;
  • 使用 ifExists 子句删除影子库压测规则
DROP SHADOW RULE IF EXISTS shadow_rule;

保留字

DROPSHADOWRULEIFEXISTS

相关链接