This form of the REVOKE statement removes the privileges on a user-defined type.
This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.
The privileges held by the authorization ID of the statement must include at least one of the following:
.-PRIVILEGES-.
>>-REVOKE----+-ALL--+------------+--+--------------------------->
| .-,----------. |
| V | |
'----+-ALTER-+--+------'
'-USAGE-'
.-,------------.
V |
>----ON--+---------------+---TYPE-------type-name---+----------->
| (1) |
'-DISTINCT------'
.-,-----------------------.
V |
>----FROM----+-authorization-name-+--+-------------------------><
'-PUBLIC-------------'
Notes:
If you do not use ALL, you must use one or more of the keywords listed below. Each keyword revokes the privilege described.
If you revoke a privilege on a user-defined type, it nullifies any grant of the privilege on that user-defined type, regardless of who granted it.
When a user-defined type privilege is revoked, the corresponding AS/400 system authorities are revoked. For information on the AS/400 system authorities that correspond to SQL privileges see "GRANT (User-Defined Type Privileges)".
Revoke the USAGE privilege on distinct type SHOESIZE from user JONES.
REVOKE USAGE
ON DISTINCT TYPE SHOESIZE
FROM JONES