Skip to main content
Use the SHOW statement to display the value of one or all of the session variables. You configure session variables using SET.

Required privileges

No privileges are required to display the session variables.

Synopsis

show_session syntax diagram
The SHOW statement for session variables is unrelated to the other SHOW statements like SHOW CLUSTER SETTING, SHOW CREATE, and SHOW DATABASES.

Parameters

Supported variables

The following session variables are exposed only for backwards compatibility with earlier CockroachDB releases and have no impact on how CockroachDB runs: For session variables on features in preview, see Features in Preview. Special syntax cases supported for compatibility:

Examples

Showing the value of a single session variable

Showing the value of all session variables

See also