how do I select unions into a temp table

Поиск
Список
Период
Сортировка
От TJ
Тема how do I select unions into a temp table
Дата
Msg-id l9xVc.8398$Bt5.4805@twister.socal.rr.com
обсуждение исходный текст
Список pgsql-general
I want to do something like this, but I can't seem to find the right syntax:

select * into temp tblDest where(
 (select t0.*
 from tblSource0 t0, tblExtension1 t1
 where t0.colA = 1 and t0.oid_parent = t1.oid
 )
 union
 (select t2.*
 from tblSource2 t2, tblExtension3 t3
 where t2.colA = 1 and t2.oid_parent = t3.oid
 )
)

You'll notice that I'm trying to do this all in a single query... I'm
essentially merging and eliminating duplicates simultaneously.

--
TJ

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

Предыдущее
От: mihai11@mailcity.com (Razvan)
Дата:
Сообщение: Re: Postgres and JBOSS
Следующее
От: sripathy sena
Дата:
Сообщение: PLPGSQL Install Help