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

Home -> Community -> Usenet -> c.d.o.tools -> Re: View with parameters ?

Re: View with parameters ?

From: sach <sach_at_relex.ru>
Date: 2000/07/05
Message-ID: <8jvr4f$vjo$1@mail.relex.ru>#1/1

Vincent FABRI ïèøåò â ñîîáùåíèè <8jqsl7$45i$1_at_wanadoo.fr> ...
>Hi,
>Is possible create view with parameters ?
>If so, where can i find sample and syntax ?
>Thank.
>-------------------------------------------------------------------
>http://hydravions.decollage.org
>-------------------------------------------------------------------
>

This is how it is done in DBMS Linter (Russia):

1 ?reate a VIEW (without parameters)
2 Create a stored procedure with the parameters necessary for the VIEW, e.g. p1 int, p2 char, p3....
3 Form a query inside the stored procedure:

    -query="select col1,col2,.. from view where col_x="||to_char(p1) || "and col_y=" ||p2 ....

4 The procedure returns the requested selection from the VIEW

Technical writer DBMS Linter Received on Wed Jul 05 2000 - 00:00:00 CDT

Original text of this message

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