Re: help on to_date conversion please....

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: help on to_date conversion please....
Дата
Msg-id 20020404103642.D20127@zf.jcu.cz
обсуждение исходный текст
Ответ на Re: help on to_date conversion please....  (Chris Pesko <cpesko@organic.com>)
Список pgsql-admin
On Wed, Apr 03, 2002 at 04:02:11PM -0800, Chris Pesko wrote:
> Thanks.  That seems a better way to go.

 The PostgreSQL docs is your good friend :-)

> At 03:47 PM 4/3/02 -0800, Stephan Szabo wrote:
>
> >You might want to try the FM format on the to_char string...
> >sszabo=#  select to_date(to_char(20020101, 'FM99999999'),'yyyymmdd');
> >   to_date
> >------------
> >  2002-01-01
> >(1 row)

 The extra space is very common for all to_...() outputs/inputs and is
 needful thing of this. Don't ask me why.. it's Oracle idea.

    Karel

--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

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

Предыдущее
От: "Marin Dimitrov"
Дата:
Сообщение: Re: indexes separate from data
Следующее
От: Andre Schubert
Дата:
Сообщение: Re: Log rotation