Re: where cannot use alias name of column?

Поиск
Список
Период
Сортировка
От Fernando Schapachnik
Тема Re: where cannot use alias name of column?
Дата
Msg-id 20010913090928.D92584@ns1.via-net-works.net.ar
обсуждение исходный текст
Ответ на where cannot use alias name of column?  (Giorgio Volpe <giorgio.volpe@gtngroup.it>)
Список pgsql-general
En un mensaje anterior, Giorgio Volpe escribió:
> May be it's my ignorance about sql ...
> but why cannot i use alias name of a column in a where clause?
>
>
> # select key as cc from mytable where cc > 0;
> ERROR:  Attribute 'cc' not found

AFAIK you can't use alias in ther where part.

Good luck!


Fernando P. Schapachnik
Planificación de red y tecnología
VIA NET.WORKS ARGENTINA S.A.
fschapachnik@vianetworks.com.ar
Tel.: (54-11) 4323-3381

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

Предыдущее
От: "Thurstan R. McDougle"
Дата:
Сообщение: Re: Inheritance c.cities ??
Следующее
От: "Thurstan R. McDougle"
Дата:
Сообщение: Re: count of occurences PLUS optimisation