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: Create a view using OUT values from a procedure - how?

Re: Create a view using OUT values from a procedure - how?

From: Serge Rielau <srielau_at_ca.ibm.com>
Date: Fri, 08 Oct 2004 08:44:00 -0400
Message-ID: <2sngctF1m6e45U1@uni-berlin.de>


In ASNI SQL it should look something like that

create type x as (a int, b int);
create function foobar...
returns x
.....

return x().a(val1).a(val2);
...

create view v(a, b)
as select my_x.a, my_x.b

   from (select foobar(c1) as my_x from t)

I'm aware the Oracle syntax is not quite the same, but it should be equivalent...

Cheers
Serge Received on Fri Oct 08 2004 - 07:44:00 CDT

Original text of this message

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