Re: datetime

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: "Pramod R(dot) Bhagwat" <pramod(at)ncoretech(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: datetime
Date: 2002-12-18 06:59:04
Message-ID: 3E001CB8.5040705@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pramod R. Bhagwat wrote:
>
> Hi JC,
> i tried above but it doesn't work i got following error
> ERROR: Cannot cast type 'integer' to 'timestamp with time zone'

Oops ... forgot you can't force an int to be a timestamp.

Don't know the answer to your question. But to help you in the long run
how about convertinf your column definition from int to timnestamp (if
it really is a timestamp it should be of that type and not int).

Jc

In response to

  • datetime at 2002-12-18 06:16:07 from Pramod R. Bhagwat

Browse pgsql-general by date

  From Date Subject
Next Message Mark Kirkwood 2002-12-18 09:17:20 Re: 2 gig file limit (yes I know, read anyway ;))
Previous Message Envex Developments 2002-12-18 06:19:42 SQL alternative to pg_dump