HomeMogDBMogDB StackUqbar
v5.0

Documentation:v5.0

Supported Versions:

Other Versions:

SHOW GRANTS

Function

Displays user permission information in the MogDB.

Precautions

  • If no user is specified, the permission information of the current user is displayed.

Syntax

SHOW GRANTS [FOR user]

Parameter Description

  • user

    Username. If this parameter is not specified, the permission information of the user who executes the statement is displayed.

Examples

MogDB=# show grants for test;
                                          Grants
-------------------------------------------------------------------------------------------
 GRANT INSERT, SELECT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER ON TABLE test TO test
 GRANT SELECT ON TABLE test TO test
 ALTER ROLE test WITH LOGIN
(3 rows)
Copyright © 2011-2024 www.enmotech.com All rights reserved.