Description: The SYSTABLEPERMS table stores the table permissions that have been granted but not revoked.

# SYSTABLEPERMS system table

The SYSTABLEPERMS table stores the table permissions that have been granted but not revoked.

All of the permissions for one (GRANTEE, TABLEID, GRANTOR) combination are specified in a single row in the SYSTABLEPERMS table. The keys for the SYSTABLEPERMS table are:

- Primary key (GRANTEE, TABLEID, GRANTOR)
- Unique key (TABLEPERMSID)
- Foreign key (TABLEID references SYS.SYSTABLES)

The column information for the SYSTABLEPERMS table is listed in the following table:

Column Name | Type | Length | Nullability | Contents
--- | --- | --- | --- | ---
TABLEPERMSID | CHAR | 36 | false | Used by the dependency manager to track the dependency of a view, trigger, or constraint on the table level permissions.
GRANTEE | VARCHAR | 30 | false | The authorization ID of the user to whom the privilege is granted.
GRANTOR | VARCHAR | 30 | false | The authorization ID of the user who granted the privilege. Privileges can be granted only by the object owner.
TABLEID | CHAR | 36 | false | The unique identifier for the table on which the permissions have been granted.
SELECTPRIV | CHAR | 1 | false | Specifies if the SELECT permission is granted. Valid values are Y and N.
DELETEPRIV | CHAR | 1 | false | Specifies if the DELETE permission is granted. Valid values are Y and N.
INSERTPRIV | CHAR | 1 | false | Specifies if the INSERT permission is granted. Valid values are Y and N.
UPDATEPRIV | CHAR | 1 | false | Specifies if the UPDATE permission is granted. Valid values are Y and N.
REFERENCEPRIV | CHAR | 1 | false | Specifies if the REFERENCE permission is granted. Valid values are Y and N.
TRIGGERPRIV | CHAR | 1 | false | Specifies if the TRIGGER permission is granted. Valid values are Y and N.

Parent topic: Derby system tables
Related reference
REVOKE statement
GRANT statement