Re: generic return for functions

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: generic return for functions
Дата
Msg-id 3ED98F60.3070503@joeconway.com
обсуждение исходный текст
Ответ на generic return for functions  ("Danny Su" <thedumbkid@hotmail.com>)
Список pgsql-sql
Danny Su wrote:
> I am currently converting everything from SQL Server to PostgreSQL.  
> This is for an application that is going to support Oracle, SQL Server 
> and PostgreSQL at the same time.  I have done a lot of the conversion 
> already but I am stuck on functions that returns parts of views or tables.
> 
[...snip description of SQL Server 2000 table-valued UDFs...]
> 
> I know "returns setof record" and "returns setof my_own_datatype" work, 
> but I would like to know if there is a better way? Something that's like 
> "returns setof record" but without having to define all the columns when 
> I call the function? {i.e. without the need to do: select * from 
> myfunction() as (column1 type1, column2...);}
> 
> If there is such method? It will allow me to maintain the application 
> much easier and makes the conversion task much easier :)
> 

Sorry -- the answer is no. But I don't think Oracle will support what 
you want either.

Joe



В списке pgsql-sql по дате отправления:

Предыдущее
От: Avi Schwartz
Дата:
Сообщение: Re: generic return for functions
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Upgrade 7.2.3 -> 7.3 or more