RE: Re: Functions returning sets

Поиск
Список
Период
Сортировка
От mordicus
Тема RE: Re: Functions returning sets
Дата
Msg-id 9e7s16$1csj$1@news.tht.net
обсуждение исходный текст
Ответ на RE: Re: Functions returning sets  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-hackers
Why not like Interbase ?

when you define a procedure in Interbase, you a the 'suspend' instruction, 
it suspend execution of the stored procedure and returns variables, then 
come back to the procedure.

select * from myfunc('ba ba');
select mycol from myfunc('dada');

escuse my poor english :)

....
Mike Mascari wrote:

> I see Tom Lane implemented the SQL92 feature of using subselects in
> FROM clauses:
> 
> CREATE TABLE foo (
> key integer not null,
> value text);
> 
> SELECT * FROM (SELECT * FROM foo) AS bar
> WHERE bar.key = 1;
> 
> Perhaps this is how functions returning sets should operate:
> 
> SELECT titles.* FROM titles, (SELECT funct_set('blah blah')) AS bar
> WHERE titles.title = bar.title;
> 
> FWIW,
> 
> Mike Mascari
> mascarm@mascari.com




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

Предыдущее
От: Andrew Rawnsley
Дата:
Сообщение: Queries across multiple databases  (was: SELECTfrom a table in another database).
Следующее
От: Zak McGregor
Дата:
Сообщение: Re: [GENERAL] Queries across multiple databases  (was: SELECT from a table in another database).