|
|
GRANT ACCESS PRIVILEGE
Grants one or more access privileges on a table or view.
Usage
Embedded/Interactive/ODBC/JDBC.
Description
The specified access privileges are granted to the ident(s) listed. When
WITH GRANT OPTIONis specified, the ident may in turn grant the specified access privileges to another ident. If the privileges are granted to aGROUPident, all members of the group receive the privileges.Access Privileges
The access privileges are as follows:
DELETEallows the ident to delete rows from the table or view identified by
table-name. If a selective delete is specified, involving aWHEREclause, appropriate privileges must also to held to permit execution of the search-condition, otherwise the delete operation will fail.INSERTallows the ident to insert new rows into the table or view identified by
table-name. If a column name list is supplied, the access is restricted to the specified columns, otherwise the access applies to the entire table (including any new columns subsequently added).REFERENCESallows the ident to use the table identified by
table-namein theFOREIGN KEYclause of aCREATE TABLEstatement.REFERENCESaccess may only be granted on a base table, not on a view. If a column name list is supplied, the access is restricted to the specified columns, otherwise the access applies to the entire table (including any new columns subsequently added).SELECTAllows the ident to select rows from the table or view identified by table-name.
UPDATEAllows the ident to update the table or view identified by
table-name. If a column name list is supplied, the access is restricted to the specified columns, otherwise the access applies to the entire table (including any new columns subsequently added). If a selective update is specified, involving aWHEREclause, appropriate privileges must also to held to permit execution of the search-condition, otherwise the update operation will fail.Access privileges may be granted in any combination. Specification of the keyword
ALL(followed by the optional keywordPRIVILEGES) instead of an explicit list of access privileges results in all applicable privileges being granted to the specified ident(s) (i.e. all privileges which the grantor is authorized to grant).Restrictions
The grantor must have grant option on the access privilege.
Notes
If the grantor loses
WITH GRANT OPTION, any access privileges he has granted using it are automatically revoked.An ident may not grant access privileges to himself.
An ident may gain
WITH GRANT OPTIONbecause of the effect of a `cascading grant' in the following situation:If an ident creates an object that references at least one object on which the ident holds an access privilege without
WITH GRANT OPTION, the ident will not holdWITH GRANT OPTIONon the created object.Example
The following example is taken from the Mimer SQL User's Manual, Granting Access Privileges.
GRANT SELECT, UPDATE(exchange_rate) ON currencies TO mimer_admin_group;Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|