Re: using calculated column in where-clause

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: using calculated column in where-clause
Дата
Msg-id 20080617211041.GA11438@tux
обсуждение исходный текст
Ответ на using calculated column in where-clause  (Patrick Scharrenberg <pittipatti@web.de>)
Ответы Re: using calculated column in where-clause  (Patrick Scharrenberg <pittipatti@web.de>)
Список pgsql-sql
Patrick Scharrenberg <pittipatti@web.de> schrieb:
> Something like this
> select a, b , a*b as c from ta where c=2;
> 
> But postgresql complains, that column "c" does not exist.
> 
> Do I have to repeat the calculation (which might be even more complex

yes.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


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

Предыдущее
От: Patrick Scharrenberg
Дата:
Сообщение: using calculated column in where-clause
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: using calculated column in where-clause