Files
doris/docs/en/sql-manual/sql-reference/Show-Statements/SHOW-GRANTS.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.6 KiB

title, language
title language
SHOW-GRANTS en

SHOW-GRANTS

Name

SHOW GRANTS

Description

This statement is used to view user permissions.

grammar:

SHOW [ALL] GRANTS [FOR user_identity];

illustrate:

  1. SHOW ALL GRANTS can view the permissions of all users.
  2. If user_identity is specified, view the permissions of the specified user. And the user_identity must be created by the CREATE USER command.
  3. If user_identity is not specified, view the permissions of the current user.

Example

  1. View all user permission information

    SHOW ALL GRANTS;
    
  2. View the permissions of the specified user

    SHOW GRANTS FOR jack@'%';
    
  3. View the permissions of the current user

    SHOW GRANTS;
    

Keywords

SHOW, GRANTS

Best Practice