can these queries be combined into one? - Mailing list pgsql-general

From hamann.w@t-online.de
Subject can these queries be combined into one?
Date
Msg-id wolfgang-1120325091651.A0128608@amadeus3.local
Whole thread Raw
Responses Re: can these queries be combined into one?
Re: can these queries be combined into one?
Re: can these queries be combined into one?
List pgsql-general

Hi,

I am currently doing something like

select ordercode, descr, codes into temp table x from products where ...
Here codes is a bit-mapped field
update x set codes = codes | 512 from othertable t where ordercode = t.ordercode and ....
select * from x

Is there a way to avoid that temp table?

Regards
Wolfgang Hamann


pgsql-general by date:

Previous
From: Jasen Betts
Date:
Subject: Re: Upgrade questions
Next
From: hamann.w@t-online.de
Date:
Subject: table alias for update