Re: Datetime stored in bigint - Mailing list pgsql-novice

From dev ss
Subject Re: Datetime stored in bigint
Date
Msg-id CAKYg8QTbANJ0n1fxT6-WhN+gu1kywBFRyHbsCOxBNftZ6VF5YQ@mail.gmail.com
Whole thread Raw
In response to Re: Datetime stored in bigint  (dev ss <ssdev938@gmail.com>)
Responses Re: Datetime stored in bigint  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-novice
Greg Sabino Mullane,

   Thanks for your help in converting the bigint to date format using function but is there a way to run a SQL query to show all the fields in the database.

Example as below in database it stores as below 

documentid   patientname datetime
Z549909343  Test, Test    634459985818906250
Y225220522  Test1,Test  634469467411401690

I need to run a query to show values as below instead of single values
documentid   patientname date
Z549909343  Test, Test    2011-07-11 16:29:00
Y225220522  Test1,Test   2011-07-22      15:52:00

Please let me know if you need more information.


On Mon, Jul 18, 2011 at 4:30 PM, dev ss <ssdev938@gmail.com> wrote:
Its an EMR  and from the front end i see 7/11/2011 4:29:41 PM and in the database i see 634459985818906250.




pgsql-novice by date:

Previous
From: Mathieu Dubois
Date:
Subject: Re: cast bytea to double precision[]
Next
From: Mathieu Dubois
Date:
Subject: Re: cast bytea to double precision[]