Re: my pgsql error?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: my pgsql error?
Дата
Msg-id 24923.984581391@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: my pgsql error?  ("Richard Huxton" <dev@archonet.com>)
Ответы Re: my pgsql error?  (Roland Roberts <roland@astrofoto.org>)
Список pgsql-sql
> For a moment I thought you could do to_char(now(),'Day DD Month YYYY'
> but you're quite right you need to rtrim() the various pieces.

regression=# select to_char(now()-10,'Day DD Month YYYY');          to_char
-----------------------------Sunday    04 March     2001
(1 row)

regression=# select to_char(now()-10,'fmDay fmDD fmMonth YYYY');      to_char
---------------------Sunday 4 March 2001
(1 row)

The 'fm' prefix is not very well explained in the docs at
http://www.postgresql.org/devel-corner/docs/postgres/functions-formatting.html
If anyone wants to suggest better wording, I'll be glad to put it in.
        regards, tom lane


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

Предыдущее
От: "pgsql-sql"
Дата:
Сообщение: Re(2): Permissons on database
Следующее
От: Alexaki Sofia
Дата:
Сообщение: ...