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

SET READWRITE_SPLITTING HINT SOURCE

描述

SET READWRITE_SPLITTING HINT SOURCE 语法用于针对当前连接,设置读写分离的路由策略(自动路由或强制到写库)

语法

SetReadwriteSplittingHintSource ::=
  'SET' 'READWRITE_SPLITTING' 'HINT' 'SOURCE' '='('auto' | 'write')

示例

  • 设置读写分离的路由策略为 auto
SET READWRITE_SPLITTING HINT SOURCE = auto;
  • 设置读写分离的路由策略为 write
SET READWRITE_SPLITTING HINT SOURCE = write;

保留字

SETREADWRITE_SPLITTINGHINTSOURCE

相关链接