The statement in SQL to revoke data operation permissions is REVOKE, and the syntax is: REVOKE <Permissions> ON <Table name> FROM <User>.
Statement to revoke data operation permissions in SQL
In SQL, by using REVOKE
statement can revoke the user's permission to operate data.
Syntax
<code>REVOKE <权限> ON <表名> FROM <用户></code>
Where:
<Permissions>
: The permission to be revoked, which can be SELECT
, INSERT
, UPDATE
, DELETE
or all permissions (ALL
) <Table name>
: The name of the table whose permissions are to be revoked<User>
: The user whose permissions are to be revokedExample
For example, to revoke user alice
’s SELECT
permissions on table customers
, you can use the following statement:
<code>REVOKE SELECT ON customers FROM alice;</code>
NOTE
The above is the detailed content of What statements are used in sql to revoke data operation permissions from users?. For more information, please follow other related articles on the PHP Chinese website!