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: Functions returning tables

Re: Functions returning tables

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Sat, 26 Feb 2005 08:01:28 -0800
Message-ID: <1109433512.991747@yasure>


Paulos wrote:

> A colleague at work suggested that it is possible to create a function
> in Oracle 9i that can be used in a select statement to return all or
> part of a table...
>
> some thing like
>
> Create function GetTable
>
> as
>
> return select * from foo;
>
> end;
>
> The idea being to then se the function in a select something along the
> lines of
>
> Select * from GetTable
>
> I am not familiar with this functionality in Oracle 9i and I can't find
> anything that makes sense to me in the help files or out on the net
>
> Does anyone know if this sort of thing is possible and if so what the
> correct syntax is in the function and in the select that calls it?
>
> TIA
>
> Paulos

Also ...
go to http://www.psoug.org
click on Morgan's Library
click on Pipeline Table Functions

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Sat Feb 26 2005 - 10:01:28 CST

Original text of this message

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