Is there a way to grant SELECT permissions on a view or stored procedure without

GRANT SELECT on viewname TO username

This is working fine only when my view is retrieving the data from a single table. If my view retieves data from different tables , i.e., for suppose

create view view_name

as

select t1.col1, t2.col2,t3.col3 from t1

inner join t2 on ...

inner join t3 on ...

 

then  "GRANT SELECT on viewname TO username" is not working.

How can i get out of this problem?

你可能感兴趣的:(Permission)