Re: SQL equivalent to nested loop

Поиск
Список
Период
Сортировка
От KÖPFERL Robert
Тема Re: SQL equivalent to nested loop
Дата
Msg-id ED4E30DD9C43D5118DFB00508BBBA76EB16744@neptun.sonorys.at
обсуждение исходный текст
Ответ на SQL equivalent to nested loop  (Markus Bertheau ☭ <twanger@bluetwanger.de>)
Ответы Re: SQL equivalent to nested loop
Список pgsql-sql
This is basicly a Join, a cross table

i.e.

select b.w from  table a, table b where ...



|-----Original Message-----
|From: twanger@bluetwanger.de [mailto:twanger@bluetwanger.de]
|Sent: Montag, 06. Juni 2005 18:53
|To: pgsql-sql@postgresql.org
|Subject: [SQL] SQL equivalent to nested loop
|
|
|Hi,
|
|I basically need the SQL equivalent of the following pseudo code:
|
|BEGIN
|FOR v IN SELECT * FROM f(4, 'foo') LOOP
|    FOR w IN SELECT * FROM f(v.id, 'bar') LOOP
|        RETURN NEXT W
|    END LOOP;
|END LOOP;
|RETURN;
|
|Is that possible in SQL?
|
|Markus
|
|--
|Markus Bertheau ☭ <twanger@bluetwanger.de>
|
|
|---------------------------(end of
|broadcast)---------------------------
|TIP 7: don't forget to increase your free space map settings
|


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

Предыдущее
От: Markus Bertheau ☭
Дата:
Сообщение: SQL equivalent to nested loop
Следующее
От: Markus Bertheau
Дата:
Сообщение: Re: SQL equivalent to nested loop