COLUMN_PRIVILEGES

The COLUMN_PRIVILEGES view contains one row for every privilege granted on a column. Note that this catalog view cannot be used to determine whether a user is authorized to a column because the privilege to use a column could be acquired through a group user profile or special authority (such as *ALLOBJ). Furthermore, the privilege to use a column is also acquired through privileges granted on the table.

The following table describes the columns in the view:

Table 1. COLUMN_PRIVILEGES view
Column Name Data Type Description
GRANTOR VARCHAR(128)
Nullable
Reserved. Contains the null value.
GRANTEE VARCHAR(128) The user profile to which the privilege is granted.
TABLE_CATALOG VARCHAR(128) Relational database name
TABLE_SCHEMA VARCHAR(128) Name of the SQL schema that contains the table.
TABLE_NAME VARCHAR(128) Name of the table.
COLUMN_NAME VARCHAR(128) Name of the column.
PRIVILEGE_TYPE VARCHAR(10) The privilege granted:
UPDATE
The privilege to update the column.
REFERENCES
The privilege to reference the column in a referential constraint.
IS_GRANTABLE VARCHAR(3) Indicates whether the privilege is grantable to other users.
NO
The privilege is not grantable.
YES
The privilege is grantable.