DCL Syntax Overview
Data control language (DCL) is used to create users and roles and set or modify database users or role rights.
Defining a Role
A role is used to manage permissions. For database security, management and operation permissions can be granted to different roles. For details about related SQL statements, see Table 1.
Defining a User
A user is used to log in to a database. Different permissions can be granted to users for managing data accesses and operations of the users. For details about related SQL statements, see Table 2.
Granting Rights
GaussDB provides a statement for granting rights to data objects and roles. For details, see GRANT.
Revoking Rights
GaussDB provides a statement for revoking rights. For details, see REVOKE.
Setting Default Rights
GaussDB allows users to set rights for objects that will be created. For details, see .ALTER DEFAULT PRIVILEGES
Shutting Down The Current Node
GaussDB allows users to run the shutdown command to shut down the current database node. For details, see SHUTDOWN.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot