今天碰到需要給數據庫上某一個用戶,開通其中2張表的查詢權限,方法如下:
grant select on bas_checkcycle to jdc;這個是整個語句。
語句分析:
grant select on bas_checkcycle to jdc;
這個顏色為執行語句。
這個顏色是數據表
這個顏色是用戶;就是需要權限的用戶。
下面這個是查看,更新,刪除,增加的權限都開啟。
grant select,update,delete,insert on UserTagPool to [app_webservice];
grant select,update,delete,insert on UserTagPoolMap to [app_webservice];