Re: correlated query as a column and where clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: correlated query as a column and where clause
Дата
Msg-id 24748.1302882575@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: correlated query as a column and where clause  (salah jubeh <s_jubeh@yahoo.com>)
Ответы Re: correlated query as a column and where clause
Список pgsql-general
salah jubeh <s_jubeh@yahoo.com> writes:
> But, why I can not  use the alias of the select statement ( as in the original
> post)  in the where clause.

The select list can only be computed after the where clause has filtered
the rows, so such a thing would be circular.

            regards, tom lane

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

Предыдущее
От: salah jubeh
Дата:
Сообщение: Re: correlated query as a column and where clause
Следующее
От: Paul Millar
Дата:
Сообщение: How to silence constraint violation logging for an INSERT