Re: date with month and year

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: date with month and year
Дата
Msg-id 20150522040427.GU5885@postgresql.org
обсуждение исходный текст
Ответ на Re: date with month and year  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: date with month and year
Список pgsql-general
Adrian Klaver wrote:

> SELECT
>     extract (
>         YEAR
>     FROM
>         school_day ) AS YEAR,

> Reformatting courtesy of pgFormatter(http://sqlformat.darold.net/).

FWIW I think this indenting of FROM inside an extract() call is odd and
ugly --- probably just an accident resulting from dealing with the
regular FROM clause.  It seems to me that the "YEAR FROM school_day"
part should be considered a single argument instead of breaking it in
multiple lines.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: date with month and year
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: date with month and year