DROP READWRITE_SPLITTING RULE

描述

DROP READWRITE_SPLITTING RULE 语法用于为指定逻辑库删除读写分离

语法定义

语法 铁路图

  1. DropReadwriteSplittingRule ::=
  2. 'DROP' 'READWRITE_SPLITTING' 'RULE' ifExists? readwriteSplittingRuleName (',' readwriteSplittingRuleName)* ('FROM' databaseName)?
  3. ifExists ::=
  4. 'IF' 'EXISTS'
  5. readwriteSplittingRuleName ::=
  6. identifier
  7. databaseName ::=
  8. identifier

补充说明

  • 未指定 databaseName 时,默认是当前使用的 DATABASE。 如果也未使用 DATABASE 则会提示 No database selected
  • ifExists 子句用于避免 Readwrite splitting rule not exists 错误。

示例

  • 为指定逻辑库删除读写分离规则
  1. DROP READWRITE_SPLITTING RULE ms_group_1 FROM readwrite_splitting_db;
  • 为当前逻辑库删除读写分离规则
  1. DROP READWRITE_SPLITTING RULE ms_group_1;
  • 使用 ifExists 子句删除读写分离规则
  1. DROP READWRITE_SPLITTING RULE IF EXISTS ms_group_1;

保留字

DROPREADWRITE_SPLITTINGRULE

相关链接