Re: Problem about pgsql's column alias

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem about pgsql's column alias
Дата
Msg-id 2151.1050299045@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem about pgsql's column alias  ("milimeter@163.com" <milimeter@163.com>)
Список pgsql-general
"milimeter@163.com" <milimeter@163.com> writes:
>   I found that in postgresql, we can only use "select login_name as name from
> users;" to get an alias "name" for column "login_name", but in most other
> databases we can omit the "as", that is "select login_name name from users;".

AS is not optional in Postgres, and will never be so unless we choose to
drop support for postfix operators, which I consider an unlikely choice.
Example: in
        SELECT foo ! bar;
is the "!" an infix operator, or is it postfix with the intended meaning
        SELECT (foo!) AS bar;

            regards, tom lane


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

Предыдущее
От: Weiping He
Дата:
Сообщение: Encoding conversion problem in AIX 4.3.3?
Следующее
От: "Ben-Nes Michael"
Дата:
Сообщение: Re: Q about transactions