Convert time to millisec?

From: Bjørn T Johansen <btj(at)havleik(dot)no>
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Convert time to millisec?
Date: 2006-08-28 08:48:47
Message-ID: 20060828104847.281e0727@foxhound
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a statement looking like this...:

select sum(Til - Fra) as total from Log_stop where OrdreID = 3434

but I would like the result to be in milliseconds, is this possible? If so, how?
(the fields Til and Fra is of type Time)

Regards,

BTJ

--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj(at)havleik(dot)no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2006-08-28 08:56:30 Re: optimising UNION performance
Previous Message Rafal Pietrak 2006-08-28 08:23:26 optimising UNION performance