From: r.trommer@open-factory.org <r.trommer@googlemail.com>
To: pgsql-jdbc@postgresql.org
Subject: Understanding PGInterval
Date: Sat, 21 Mar 2009 16:06:56 -0700 (PDT)
Message-ID: <e25af22b-a772-4eaa-963e-0ca2897bb3bd@h28g2000yqd.googlegroups.com> (raw)
Hello List,
i try to understand how i can use the PGInterval Object. I have to
solve a little issue in Java. I have created a SQL-statement which
give me a resultset like this:
id | duration
1 | 01:49:00
2 | 00:30:00
The datetypes id = int and duration = PGInterval. I would like to sum
the both duration values in Java. I can“t use a SQL sum because i need
the results later to report some details.
I use postgresql-8.1-404.jdbc2.jar
Thank you in advance
Ronny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: r.trommer@googlemail.com
Subject: Re: Understanding PGInterval
In-Reply-To: <e25af22b-a772-4eaa-963e-0ca2897bb3bd@h28g2000yqd.googlegroups.com>
References: <e25af22b-a772-4eaa-963e-0ca2897bb3bd@h28g2000yqd.googlegroups.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox