can these queries be combined into one?

Поиск
Список
Период
Сортировка
От hamann.w@t-online.de
Тема can these queries be combined into one?
Дата
Msg-id wolfgang-1120325091651.A0128608@amadeus3.local
обсуждение исходный текст
Ответы Re: can these queries be combined into one?  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: can these queries be combined into one?  (Tom Molesworth <tom@audioboundary.com>)
Re: can these queries be combined into one?  (Rainer Pruy <Rainer.Pruy@Acrys.COM>)
Список 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 по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Upgrade questions
Следующее
От: hamann.w@t-online.de
Дата:
Сообщение: table alias for update