Re: Conditional JOINs ?

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: Conditional JOINs ?
Дата
Msg-id EF30AEAE-03E9-4161-9993-46A137A1AEC5@myemma.com
обсуждение исходный текст
Ответ на Re: Conditional JOINs ?  ("Leon Mergen" <leon@solatis.com>)
Ответы Re: Conditional JOINs ?  ("Leon Mergen" <leon@solatis.com>)
Список pgsql-general
On Mar 19, 2008, at 9:01 AM, Leon Mergen wrote:

> On 3/19/08, Leon Mergen <leon@solatis.com> wrote:
>> Excuse me for bumping this up again, but I still don't understand how
>> to use this approach to sequentially walk through all different child
>> tables in one select, without having to JOIN these tables all the
>> time
>
> Apparently a UNION all solved this problem -- sorry for the noise.

If you have the child tables INHERITing from the parent, then a simple

SELECT parent.* FROM parent;

would be equivalent to manually spelling out a UNION ALL that
explicitly lists all of the tables.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com




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

Предыдущее
От: "Philippe Lang"
Дата:
Сообщение: contrib/xml2 with 7.4
Следующее
От: "Martin Gainty"
Дата:
Сообщение: Re: nntp not workiNG