Grant Statement; Syntax Description Of Grant - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

GRANT Statement

"Syntax Description of GRANT"

"Considerations for GRANT"
"Examples of GRANT"
The GRANT statement grants access privileges for a Neoview SQL table, view, or materialized
view to specified roles or through a synonym of a table, view, or materialized view.
GRANT { privilege [,privilege]... | ALL [PRIVILEGES] }
ON [TABLE] object
TO {grantee [,grantee ]... }
[WITH GRANT OPTION]
grantee is:
authid | PUBLIC
privilege is:
DELETE
| INSERT
| SELECT
| UPDATE [(column [,column]...)]
| REFERENCES [(column [,column]...)]
Syntax Description of GRANT
privilege [,privilege]...| ALL [PRIVILEGES]
specifies the privileges to grant. You can specify each of these privileges for a table, view, or
materialized view.
DELETE
INSERT
UPDATE
REFERENCES
SELECT
ALL PRIVILEGES
(column [,column]...)
names the columns of the object to which the UPDATE or REFERENCES privileges apply.
If you specify UPDATE or REFERENCES without column names, the privileges apply to all
columns of the table, view, or materialized view.
ON [TABLE]object
specifies a table, view or materialized view on which to grant privileges.
TO {grantee [,grantee]... }
specifies one or more roles to whom you grant privileges.
grantee is authid | PUBLIC
authid specifies an authorization ID to whom you grant privileges. Authorization IDs
identify roles during the processing of SQL statements. The authorization ID must be a valid
role name, enclosed in double quotes. authid is not case-sensitive.
SQL:1999 specifies two special authorization IDs: PUBLIC and SYSTEM.
PUBLIC specifies all present and future authorization IDs.
SYSTEM specifies the implicit grantor of privileges to the creators of objects.
You cannot specify SYSTEM as an authid in a GRANT statement.
Can use DELETE statement.
Can use INSERT statement.
Can use UPDATE statement.
Can create constraints that reference the object.
Can use SELECT statement.
All the privileges above. When ALL is specified, the
object can be a table, view, or materialized view.
GRANT Statement
115

Advertisement

Table of Contents
loading

Table of Contents