SQLCOLPRIVILEGES

The SQLCOLPRIVILEGES view contains one row for every privilege granted on a column or a privilege granted on the column’s table. 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).

The following table describes the columns in the view:

Table 1. SQLCOLPRIVILEGES view
Column Name Data Type Description
TABLE_CAT VARCHAR(128) Relational database name.
TABLE_SCHEM VARCHAR(128) Name of the SQL schema that contains the table.
TABLE_NAME VARCHAR(128) Table name.
COLUMN_NAME VARCHAR(128) Column name.
GRANTOR VARCHAR(128)
Nullable
Reserved. Contains the null value.
GRANTEE VARCHAR(128) The user profile to which the privilege is granted.
PRIVILEGE 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.
DBNAME VARCHAR(8)
Nullable
Reserved. The column contains the null value.