DROP SHADOW ALGORITHM
语法用于为指定逻辑库删除影子库压测算法。
DropShadowAlgorithm ::=
'DROP' 'SHADOW' 'ALGORITHM' ifExists? algorithmName (',' algorithmName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
algorithmName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 shadow algorithm not exists
错误。DROP SHADOW ALGORITHM shadow_rule_t_order_sql_hint_0, shadow_rule_t_order_item_sql_hint_0 FROM shadow_db;
DROP SHADOW ALGORITHM shadow_rule_t_order_sql_hint_0;
ifExists
子句删除影子库压测算法DROP SHADOW ALGORITHM IF EXISTS shadow_rule_t_order_sql_hint_0;
DROP
、SHADOW
、ALGORITHM
、FROM