This form of the GRANT statement grants the CONTROL privilege on indexes.
Invocation
This statement can be embedded in an application program or issued through the use of dynamic SQL statements. It is an executable statement that can be dynamically prepared.
Authorization
The privileges held by the authorization ID of the statement must include at least one of the following:
Syntax
>>-GRANT--CONTROL--ON INDEX--index-name------------------------->
.-,------------------------------------.
V |
>----TO----+-+-------+---authorization-name--+--+--------------><
| +-USER--+ |
| '-GROUP-' |
'-PUBLIC--------------------------'
|
Description
The list of authorization IDs cannot include the authorization ID of the user issuing the statement. (It is not possible to grant authorities to an authorization-name that is the same as the authorization ID of the GRANT statement.)
Rules
Example
GRANT CONTROL ON INDEX DEPTIDX TO USER USER4