DROP READWRITE_SPLITTING RULE
语法用于为指定逻辑库删除读写分离
DropReadwriteSplittingRule ::=
'DROP' 'READWRITE_SPLITTING' 'RULE' ifExists? readwriteSplittingRuleName (',' readwriteSplittingRuleName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
readwriteSplittingRuleName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 Readwrite splitting rule not exists
错误。DROP READWRITE_SPLITTING RULE ms_group_1 FROM readwrite_splitting_db;
DROP READWRITE_SPLITTING RULE ms_group_1;
ifExists
子句删除读写分离规则DROP READWRITE_SPLITTING RULE IF EXISTS ms_group_1;
DROP
、READWRITE_SPLITTING
、RULE