Re: to_date has beaten me...
| От | Roberto Mello |
|---|---|
| Тема | Re: to_date has beaten me... |
| Дата | |
| Msg-id | 20030206050635.GB19492@cc.usu.edu обсуждение исходный текст |
| Ответ на | Re: to_date has beaten me... (Rodger Donaldson <rodgerd@diaspora.gen.nz>) |
| Ответы |
Re: to_date has beaten me...
|
| Список | pgsql-sql |
On Thu, Feb 06, 2003 at 05:25:39PM +1300, Rodger Donaldson wrote:
> 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...
Because DECODE is non-standard AFAIK. You can use CASE WHEN in PostgreSQL,
which IIRC, started being supported in Oracle 8.1.7.
-Roberto
--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ Computer Science Graduate Student, Utah State University +
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
The linuX Files -- The Source is Out There.-- Sent in by Craig S. Bell, goat@aracnet.com
В списке pgsql-sql по дате отправления: