SET READWRITE_SPLITTING HINT SOURCE

Description

The SET READWRITE_SPLITTING HINT SOURCE syntax is used to set readwrite splitting routing strategy for current connection.

Syntax

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

Example

  • Set the read-write splitting routing strategy to auto
  1. SET READWRITE_SPLITTING HINT SOURCE = auto;
  • Set the read-write splitting routing strategy to write
  1. SET READWRITE_SPLITTING HINT SOURCE = write;

Reserved word

SET, READWRITE_SPLITTING, HINT, SOURCE