subquery returnig more than one field

Поиск
Список
Период
Сортировка
От Jan Varga
Тема subquery returnig more than one field
Дата
Msg-id Pine.LNX.4.10.10004071423570.3077-100000@frru.utcru.sk
обсуждение исходный текст
Список pgsql-sql
Hi,

now I'm using query:

select id, c1(my_func(id)), c2(my_func(id)) from my_table

my_table ( id int
)

my_table2 ( c1 int, c2 int
)

my_function returns my_table2

but this quite inefficient because my_func is called twise for each row
Are there any possibilities to enhance this ?


Please reply to my e-mail too, because I'm not on the list
and mail archives are not functional at the moment


Thanks

Jan




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

Предыдущее
От: "Moray McConnachie"
Дата:
Сообщение: Re: duplicates
Следующее
От: "Gerhard Dieringer"
Дата:
Сообщение: Antw: duplicates