Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: parameterized views

Re: parameterized views

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Wed, 11 Aug 2004 21:19:58 +0800
Message-ID: <411A1CFE.7868@yahoo.com>


Ernest Morariu wrote:
>
> Hi !
>
> Is it possible in Oracle to create a parameterized view ?
>
> ernest

take a look at application contexts...

your view looks like:

select ...
from ...
where col = sys_context(...)

and the context can be set globally or on a session by session basis.

hth
connor

-- 
Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions"
ISBN: 1590592174

web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish,
and...he will sit in a boat and drink beer all day"

------------------------------------------------------------
Received on Wed Aug 11 2004 - 08:19:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US