GRANT Statement (grant_statement)
The GRANT statement assigns
privileges for tables, individual columns and roles, the SELECT privilege for a sequence, and the execution privilege for a database procedure.Syntax
<grant_statement> ::= GRANT <priv_spec>,... TO <grantee>,... [WITH GRANT OPTION]
| GRANT EXECUTE ON <dbproc_name> TO <grantee>,...
| GRANT SELECT ON <sequence_name> TO <grantee>,... [WITH GRANT OPTION]
Explanation
The privileges in the privilege specification are assigned to the
users, user groups, and roles (see also: Role Concept) specified in the grantee list.WITH GRANT OPTION
Users or usergroups identified as grantees are allowed to pass on their privileges to other users. The current user must have the authorization to pass on these privileges.
The WITH GRANT OPTION cannot be specified if
grantee identifies a role.GRANT EXECUTE ON
GRANT EXECUTE ON allow the user identified by
grantee to execute the specified database procedure. The current user must be the owner of the database procedure.GRANT SELECT ON
GRANT SELECT ON allows the user identified by
grantee to execute the specified sequence.