1.create user A identified by password,創建用戶
create user USER_JWFZ identified by JWFZ2017;
2.grant connect to A --授予connect權限
grant connect to USER_JWFZ ;
3.grant select on test to A --給指定用戶的表或者視圖授予select(只讀)權限,其中test是表名或者視圖名
grant select on USER_AHUTJWFZ.V_AB_ATTENDANCE_ATTRECORD to USER_JWFZ;