REVOKE語句是GRANT語句的逆語句
(
REVOKE {ALL | statement[
FROM security_account[
(
REVOKE[GRANT OPTION FOR]
{ALL [PRIVILEGES] | permission[
{
[ (Column[
| ON {table | view}[(column[
| ON {stored_procedure | extended_procedure}
}
FROM security_account[
[CASCADE]
[AS {group | role}]
下面是一個實例
USE game
GO
REVOKE SELECT
ON author
FROM gamer
GO
REVOKE INSERT
ON author
FROM Mike
GO
REVOKE CREATE TABLE
FROM teacher
GO
DENY語句與REVOKE語句類似
(
DENY {ALL | statement[
TO security_account[
(
DENY{ALL [PRIVILEGES] | permission[
{
[ (Column[
| ON {table | view}[(column[
| ON {stored_procedure | extended_procedure}
}
TO security_account[
[CASCADE]
right
From:http://tw.wingwit.com/Article/program/SQL/201311/16289.html