datetime

From: "Pramod R(dot) Bhagwat" <pramod(at)ncoretech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: datetime
Date: 2002-12-18 06:16:07
Message-ID: 3E0012A7.E7A336EC@ncoretech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
i have a table Test with following fields
Id int
Expires int
The below query works perfectly fine on PostgreSQL version 7.0

select TO_CHAR(TIMESTAMP(datetime(Expires)), 'DD-MM-YYYY HH:MI AM') from
Test;

But it doesn't work on PostgreSQL version 7.2 On PostgreSQL version 7.2
i get following error
ERROR: parser: parse error at or near "datetime"
Please inform me what changes i have to make.
Regards,
pramod

Responses

  • Re: datetime at 2002-12-18 06:59:04 from Jean-Christian Imbeault
  • Re: datetime at 2002-12-18 11:06:15 from Pramod R. Bhagwat

Browse pgsql-general by date

  From Date Subject
Next Message Toby Tremayne 2002-12-18 06:18:56 return setof record from function with dynamic query
Previous Message Tom Lane 2002-12-18 04:29:56 Re: 2 gig file limit (yes I know, read anyway ;))