一、給用戶增加表或者視圖的權限
命令:grant xxx權限 on Table to USER
grant select,insert,update,delete,all on 表名 to 用戶名
例如:將test表的查詢權限賦予tom這個用戶
grant select on test to tom
二、給用戶增加存儲過程的權限
grant execute on 存儲過程名稱 to 用戶名;
grant select on 存儲過程名稱 to 用戶名;
一、給用戶增加表或者視圖的權限
命令:grant xxx權限 on Table to USER
grant select,insert,update,delete,all on 表名 to 用戶名
例如:將test表的查詢權限賦予tom這個用戶
grant select on test to tom
二、給用戶增加存儲過程的權限
grant execute on 存儲過程名稱 to 用戶名;
grant select on 存儲過程名稱 to 用戶名;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。