Temp tables

Поиск
Список
Период
Сортировка
От jose fuenmayor
Тема Temp tables
Дата
Msg-id CAK74dbmv6JStQ_7FW9-UbuY2bXoMLnW_fQ54qGCW_X8bhDngoA@mail.gmail.com
обсуждение исходный текст
Ответы RE: Temp tables  ("2.andriychuk" <2.andriychuk@gmail.com>)
Список pgsql-admin
Hi all , i have a doubt wich query performs better
Update table a set field1=b.field 1
From (select field1,field2

From table2 where x=z
) b
Where a.field2=b.field2

Or

Create temp table y as
select field1,field2
From table2 where x=z;

Update table a 
set field1=b.field1
From y as b
Where a.field2=b.field2

I ve been told not to use subquerys, but i think this refers to

Select * from table where field1 in (select field1 from table2)

Any thoughts?
Thanks people y'all

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

Предыдущее
От: Jerry Sievers
Дата:
Сообщение: Re: Seeing where a given trigger function is in use?
Следующее
От: "2.andriychuk"
Дата:
Сообщение: RE: Temp tables