sql中g(shù)rant的用法 數(shù)據(jù)庫,說明GRANT?
數(shù)據(jù)庫,說明GRANT?Drop用于刪除表、列、視圖、索引等。Drop表示刪除。例如:drop table student//delete student table alter table stud
數(shù)據(jù)庫,說明GRANT?
Drop用于刪除表、列、視圖、索引等。Drop表示刪除。例如:drop table student//delete student table alter table student drop column sname//delete sname column drop index in student table Studname//delete view等。當(dāng)您使用more時,您可以看到這個語句的用法[grant]是一個authorization語句,它將表上的操作權(quán)限授予用戶。示例:向用戶U1授予對student表的insert權(quán)限:向U1授予insert table student[revoke]是撤消權(quán)限。值得注意的是,撤銷權(quán)限時,要注意是否是級聯(lián)撤銷。例如,撤消U1對學(xué)生的插入權(quán)限,撤消U1對學(xué)生表的插入。grant語句和revoke語句是相對的,您應(yīng)該看到HA o(∩)∩)o
grant在安全系統(tǒng)中創(chuàng)建項目,使當(dāng)前數(shù)據(jù)庫中的用戶能夠處理當(dāng)前數(shù)據(jù)庫中的數(shù)據(jù)或執(zhí)行特定的transact-SQL語句。語法權(quán)限:grant{all | statement[,。。。N] }到安全帳戶[,。。。N] 對象權(quán)限:授予{所有[優(yōu)先級]