subselects & views

Поиск
Список
Период
Сортировка
От Brett McCormick
Тема subselects & views
Дата
Msg-id 13750.39545.799911.28738@web0.speakeasy.org
обсуждение исходный текст
Ответы Re: [HACKERS] subselects & views
Список pgsql-hackers
select max(ccorderseq) from ccorder;
max
---
603
(1 row)

icv=> select * From the_view where ccorderseq = 603;

[ I get the row back ]

select * From the_view where ccorderseq = (select max(ccorderseq) from ccorder);

I don't get the row back.  nothing has changed, the max value is still
the same.  when I write out the view as a select, the subquery works
and I get the row.

if it makes much of a difference the view is doing a "glob" query (of
a parent and all children, i.e. select from table*)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Efficiency again...
Следующее
От: Vadim Mikheev
Дата:
Сообщение: LLL: serialized and schema objects...