Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Re: block a field

Connor McDonald

2006-07-16

Replies:

On 5/19/06, David Boyd <davidb158@(protected):
> Thanks Wolfgang.
>
> The performance is the same as
>
> create view t1_view
> as select other_fields, decode(priv, 1, id, '') id
> from t1, (select count(*) priv from security where user_name=user);
>

how about

create view V as
select ..., decode(sys_context('USERPRIVS','PRIVS'),1,id))
from t1

where you set the context at logon time etc.

hth
connor

--
Connor McDonald
===========================
email: connor_mcdonald@(protected)
web:  http://www.oracledba.co.uk

"Semper in excremento, sole profundum qui variat"
--
http://www.freelists.org/webpage/oracle-l


©2008 dba.5341.com - Jax Systems, LLC, U.S.A.