Files
doris/docs/en/sql-manual/sql-reference/Show-Statements/SHOW-VARIABLES.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

1.8 KiB

title, language
title language
SHOW-VARIABLES en

SHOW-VARIABLES

Name

SHOW VARIABLES

Description

The modified statement is used to display Doris system variables, which can be queried by conditions

grammar:

SHOW [GLOBAL | SESSION] VARIABLES
     [LIKE 'pattern' | WHERE expr]

illustrate:

  • show variables is mainly used to view the values of system variables.
  • Executing the SHOW VARIABLES command does not require any privileges, it only requires being able to connect to the server.
  • Use the like statement to match with variable_name.
  • The % percent wildcard can be used anywhere in the matching pattern

Example

  1. The default here is to match the Variable_name, here is the exact match

    show variables like 'max_connections';
    
  2. Matching through the percent sign (%) wildcard can match multiple items

    show variables like '%connec%';
    
  3. Use the Where clause for matching queries

    show variables where variable_name = 'version';
    

Keywords

SHOW, VARIABLES

Best Practice