Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: block a field
On 5/19/06, David Boyd <davidb158_at_hotmail.com> wrote:
> 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_at_yahoo.com web: http://www.oracledba.co.uk "Semper in excremento, sole profundum qui variat" -- http://www.freelists.org/webpage/oracle-lReceived on Sun Jul 16 2006 - 08:52:44 CDT
![]() |
![]() |