Re: to_date has beaten me...

Поиск
Список
Период
Сортировка
От Rodger Donaldson
Тема Re: to_date has beaten me...
Дата
Msg-id 20030206042539.GA8420@diaspora.gen.nz
обсуждение исходный текст
Ответ на Re: to_date has beaten me...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: to_date has beaten me...  (Roberto Mello <rmello@cc.usu.edu>)
Список pgsql-sql
On Wed, Feb 05, 2003 at 11:22:57PM -0500, Tom Lane wrote:
> Rodger Donaldson <rodgerd@diaspora.gen.nz> writes:
> > values    (to_date('06/Feb/2003:11:29:11 +13', 'DD/Mon/YYYY:HH24:MI:SS'),0,302,
> 
> > Always inserts the correct date, but sets the time to midnight.
> 
> Um, well, yeah ... it's to_DATE, meaning it produces a result of type
> date.  I think you wanted to_timestamp().

Why yes.  Yes I did.  Too much time spent with Oracle, evidently.
Next I'll be wondering why DECODE doesn't work...

-- 
Rodger Donaldson        rodgerd@diaspora.gen.nz
"How do I set my laser printer for stun?"-- William Tansil


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: to_date has beaten me...
Следующее
От: Roberto Mello
Дата:
Сообщение: Re: to_date has beaten me...