B.18 Content of SQL_TABLE_PRIVILEGES
SQL_TABLE_PRIVILEGES stores information related to access privileges for tables. Each row stores one table's worth of information on one authorization identifier granted by a privilege grantor.
The following table describes the content of SQL_TABLE_PRIVILEGES.
No. |
Column name |
Data type |
Stored information |
---|---|---|---|
1 |
GRANTOR |
VARCHAR(100) |
Authorization identifier of the HADB user who granted the access privilege |
2 |
GRANTEE |
VARCHAR(100) |
Authorization identifier of the HADB user to whom the access privilege was granted, or 'PUBLIC' |
3 |
GRANTEE_TYPE |
CHAR(1) |
Type of HADB user to whom the access privilege was granted
|
4 |
OWNER |
VARCHAR(100) |
Authorization identifier of the HADB user who owns the table to which the access privilege applies |
5 |
TABLE_SCHEMA |
VARCHAR(100) |
Schema name of the table to which the access privilege applies |
6 |
TABLE_NAME |
VARCHAR(100) |
Table identifier of the table to which the access privilege applies |
7 |
GRANT_TIME |
TIMESTAMP |
|
8 |
SELECT_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the SELECT privilege
|
9 |
INSERT_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the INSERT privilege
|
10 |
UPDATE_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the UPDATE privilege
|
11 |
DELETE_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the DELETE privilege
|
12 |
TRUNCATE_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the TRUNCATE privilege
|
13 |
REFERENCES_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the REFERENCES privilege
|
14 |
IMPORT_TABLE_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the IMPORT TABLE privilege
|
15 |
REBUILD_INDEX_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the REBUILD INDEX privilege
|
16 |
GET_COSTINFO_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the GET COSTINFO privilege
|
17 |
EXPORT_TABLE_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the EXPORT TABLE privilege
|
18 |
MERGE_CHUNK_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the MERGE CHUNK privilege
|
19 |
CHANGE_CHUNK_COMMENT_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the CHANGE CHUNK COMMENT privilege
|
20 |
CHANGE_CHUNK_STATUS_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the CHANGE CHUNK STATUS privilege
|
21 |
ARCHIVE_CHUNK_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the ARCHIVE CHUNK privilege
|
22 |
UNARCHIVE_CHUNK_PRIVILEGE |
CHAR(1) |
Whether the HADB user has the UNARCHIVE CHUNK privilege
|
- Note
-
You cannot retrieve information about the access privileges for a viewed table if the viewed table has been invalidated.
- ▪ Information on access privileges for dictionary tables and system tables
-
Information on access privileges for dictionary tables and system tables is not stored in SQL_TABLE_PRIVILEGES. Information on access privileges for dictionary tables and system tables, is assumed to be as follows:
-
SELECT_PRIVILEGE (Whether the HADB user has the SELECT privilege)
'G': The HADB user has the SELECT privilege with grant option
-
EXPORT_TABLE_PRIVILEGE (Whether the HADB user has the EXPORT TABLE privilege)
'G': The HADB user has the EXPORT TABLE privilege with grant option
-
Whether the HADB user has any access privileges other than the preceding ones
N: No
-