Re: order by day or month, etc

From: Jens Hartwig <jhartwig(at)debis(dot)com>
To: Leo Xavier <info(at)megabenfica(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: order by day or month, etc
Date: 2001-01-03 07:30:18
Message-ID: 3A52D50A.416A0C38@debis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello Leo,

which version of PostgreSQL are you running? I tested:

select to_char(abm_dat, 'DD/MM/YYYY') AS new_date
from t_dummy;

And it works fine:

new_date
------------
31/03/1992
15/06/1994
11/09/1993
19/11/1993
...

Regards, Jens

Leo Xavier schrieb:
> [...]
> doing this:
> SELECT to_char(field, 'DD/MM/YYYY') AS new_date
>
> as Francis Solomon said, didnt work... "unrecognized function" ...
> [...]

=============================================
Jens Hartwig
---------------------------------------------
debis Systemhaus GEI mbH
10875 Berlin
Tel. : +49 (0)30 2554-3282
Fax : +49 (0)30 2554-3187
Mobil : +49 (0)170 167-2648
E-Mail : jhartwig(at)debis(dot)com
=============================================

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Sangeeta Bhatnagar 2001-01-03 08:14:22
Previous Message Tom Lane 2001-01-03 05:01:11 Re: FUNCTION returing multiple rows