SET DIST VARIABLE
Description
The SET DIST VARIABLE syntax is used to set system variables.
Syntax
SetDistVariable ::=
'SET' 'DIST' 'VARIABLE' variableName '=' variableValue
variableName ::=
identifier
variableValue ::=
literalSupplement
-
variableNameis a ShardingSphere property; see common properties and Proxy properties. Use underscores instead of hyphens in DistSQL variable names. -
agent_plugins_enabledis used to set theagentplugin status. Its default value isTRUE.
Example
- Set a ShardingSphere property
SET DIST VARIABLE sql_show = true;- Set
agentplugin enable status
SET DIST VARIABLE agent_plugins_enabled = TRUE;Reserved word
SET, DIST, VARIABLE