Re: Datetime stored in bigint

From: dev ss <ssdev938(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Datetime stored in bigint
Date: 2011-07-25 19:56:55
Message-ID: CAKYg8QTbANJ0n1fxT6-WhN+gu1kywBFRyHbsCOxBNftZ6VF5YQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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.
>
>
>
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mathieu Dubois 2011-07-26 07:45:17 Re: cast bytea to double precision[]
Previous Message Mathieu Dubois 2011-07-25 15:58:02 Re: cast bytea to double precision[]