All pages
Powered by GitBook
1 of 1

Loading...

Information Schema COLUMN_PRIVILEGES Table

The Information Schema COLUMN_PRIVILEGES table contains column privilege information derived from the mysql.columns_priv grant table.

The Information Schema COLUMN_PRIVILEGES table contains column privilege information derived from the mysql.columns_priv grant table.

It has the following columns:

Column
Description

GRANTEE

In the format user_name@host_name.

TABLE_CATALOG

Always def.

TABLE_SCHEMA

Similar information can be accessed with the and statements. See the statement for details about privileges.

This information is also stored in the table, in the mysql system database.

For a description of the privileges that are shown in this table, see .

Example

In the following example, no column-level privilege has been explicitly assigned:

This page is licensed: CC BY-SA / Gnu FDL

Database name.

TABLE_NAME

Table name.

COLUMN_NAME

Column name.

PRIVILEGE_TYPE

One of SELECT, INSERT, UPDATE or REFERENCES.

IS_GRANTABLE

Whether the user has the GRANT OPTION for this privilege.

SHOW FULL COLUMNS
SHOW GRANTS
GRANT
columns_priv
column privileges
SELECT * FROM information_schema.COLUMN_PRIVILEGES;
Empty SET