GRANT

Function

GRANT grants permissions to roles and users.

GRANT is used in the following scenarios:

Precautions

To isolate permissions, GaussDB(DWS) disables WITH GRANT OPTION and TO PUBLIC.

Syntax

Parameter Description

GRANT grants the following permissions:

GRANT parameters are as follows:

Examples

Helpful Links

REVOKE, ALTER DEFAULT PRIVILEGES