# Information Schema COLUMN\_PRIVILEGES Table

The [Information Schema](https://mariadb.com/docs/server/reference/system-tables/information-schema) `COLUMN_PRIVILEGES` table contains column privilege information derived from the [mysql.columns\_priv](https://mariadb.com/docs/server/reference/system-tables/the-mysql-database-tables/mysql-columns_priv-table) grant table.

It has the following columns:

| Column          | Description                                                                                                                                                                    |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| GRANTEE         | In the format user\_name\@host\_name.                                                                                                                                          |
| TABLE\_CATALOG  | Always def.                                                                                                                                                                    |
| TABLE\_SCHEMA   | 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](https://mariadb.com/docs/server/sql-statements/account-management-sql-statements/grant#the-grant-option-privilege) for this privilege. |

Similar information can be accessed with the [SHOW FULL COLUMNS](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-columns) and [SHOW GRANTS](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-grants) statements. See the [GRANT](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/grant) statement for details about privileges.

This information is also stored in the [columns\_priv](https://mariadb.com/docs/server/reference/system-tables/the-mysql-database-tables/mysql-columns_priv-table) table, in the `mysql` system database.

For a description of the privileges that are shown in this table, see [column privileges](https://mariadb.com/docs/server/sql-statements/account-management-sql-statements/grant#column-privileges).

## Example

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

```sql
SELECT * FROM information_schema.COLUMN_PRIVILEGES;
Empty SET
```

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
