The SQLCOLPRIVILEGES view contains one row for every privileges 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:
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:
|
IS_GRANTABLE | VARCHAR(3) | Indicates whether the privilege is grantable
to other users.
|
DBNAME | VARCHAR(8)
Nullable |
Reserved. The column contains the null value. |
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.