Skip to main content
The SET statement can modify one of the session configuration variables. These can also be queried via SHOW. By default, session variable values are set for the duration of the current session. CockroachDB supports setting session variables for the duration of a single transaction, using the LOCAL keyword.

Supported variables

The following session variables are exposed only for backwards compatibility with earlier CockroachDB releases and have no impact on how CockroachDB runs:

See also