Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: The Oracle-No-Parameterized-View mystery ...
Mark C. Stock wrote:
> "Martin T." <bilbothebagginsbab5_at_freenet.de> wrote in message
> news:1151476478.707538.43140_at_y41g2000cwy.googlegroups.com...
> : Mark C. Stock wrote:
> : > "Martin T." <bilbothebagginsbab5_at_freenet.de> wrote in message
> : > news:1151413920.975720.195890_at_y41g2000cwy.googlegroups.com...
> : > :
> : > : Simple Question: Why does Oracle not support parameters to views?
> : >
> :
> (...)
> IIUC, you would want to be able to submit something like:
>
> select * from myview(15, 'OPEN', date '2006-01-22');
>
>
> set_params_myview(15, 'OPEN', date '2006-01-22'); select * from myview;
>
>
> select * from myview
> where x = 15
> and y = 'OPEN'
> and x between date '2006-01-22' and sysdate;
>
>
>
>
You very nicely stated the 3 alternatives :)
As I already mentioned there are a number of alternatives in Oracle
that will achive pretty much the same result as a directly,
syntactically, parameterized view .
>From a functional point of view they seem equivalent to a par.view .
(Well, pipeline functions seem to be much more powerful, but one could
achive the desired results.)
And exactly because I believe that Oracle already provides the _functionality_ of parameterized views via several ways, it is a mystery to me why it does not support a direct syntax for it ...
best,
Martin
Received on Wed Jun 28 2006 - 06:40:44 CDT
![]() |
![]() |