Re: BUG #4037: Manual bug: 2.5. Querying a Table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4037: Manual bug: 2.5. Querying a Table
Дата
Msg-id 27448.1205536084@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4037: Manual bug: 2.5. Querying a Table  ("Daniel Cristian Cruz" <danielcristian@gmail.com>)
Ответы Re: BUG #4037: Manual bug: 2.5. Querying a Table  ("Daniel Cristian Cruz" <danielcristian@gmail.com>)
Список pgsql-bugs
"Daniel Cristian Cruz" <danielcristian@gmail.com> writes:
> Where it says:

> "Notice how the AS clause is used to relabel the output column. (The AS
> clause is optional.)"

> It's wrong, because it causes an error if executed without it.

Hmm?  You can leave off the AS clause if you want:

SELECT city, (temp_hi+temp_lo)/2 AS temp_avg, date FROM weather;
SELECT city, (temp_hi+temp_lo)/2, date FROM weather;

            regards, tom lane

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

Предыдущее
От: "Daniel Cristian Cruz"
Дата:
Сообщение: BUG #4037: Manual bug: 2.5. Querying a Table
Следующее
От: "Alexey"
Дата:
Сообщение: BUG #4038: Problem with locale changing by initdb