Re: [OT] Duration between two timestamps

From: Chris Smith <chris(at)interspire(dot)com>
To: phil campaigne <pcampaigne(at)charter(dot)net>
Cc: scrawford(at)pinpointresearch(dot)com, tomcat-user(at)jakarta(dot)apache(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [OT] Duration between two timestamps
Date: 2005-02-23 03:25:09
Message-ID: 421BF795.7050907@interspire.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Phil,

Have you tried copying the insert statement straight into postgres?
print it out (or log it or whatever) and try that first.. that'll narrow
things down a little.

phil campaigne wrote:
> Hi All,
> In my java application I need to subtract two java.sql.timestamps. and I
> want to store the result as sql type "interval".
> But my insert statement is failing.
>
> Does anyone know what java type I need to use in the insert statement?
> (it must accept null values)
> thanks in advance,
> Phil
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Regards,

Chris Smith

Suite 30, 45-51 Huntley St, Alexandria, NSW 2015 Australia

Ph: +61 2 9517 2505
Fx: +61 2 9517 1915

email: info(at)interspire(dot)com
web: www.interspire.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message anupam.chaudhury 2005-02-23 05:16:51 Porting Postgres on VXworks+SH4
Previous Message phil campaigne 2005-02-23 02:54:28 [OT] Duration between two timestamps