where cannot use alias name of column?

Поиск
Список
Период
Сортировка
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


--

    Giorgio

-----------------------------------------




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