All Products
Search
Document Center

AnalyticDB:REVOKE

Last Updated:Mar 28, 2026

Use REVOKE to remove permissions from an account.

REVOKE
    priv_type [(column_list)]
      [, priv_type [(column_list)]] ...
    ON [object_type] priv_level
    FROM user

Parameters

ParameterDescription
priv_typeThe permission type to revoke. For the full list, see Permission model.
column_list(Optional) One or more column names. Applies only when priv_type is SELECT, restricting the revocation to specific columns.
priv_levelThe scope of the permission to revoke: *.* (cluster level), db_name.* (database level), or db_name.table_name / table_name (table level).

Usage notes

To run REVOKE, the account must have the GRANT OPTION permission.

Examples

Revoke all database-level permissions from account3:

REVOKE ALL ON adb_demo.* FROM 'account3';

What's next