From: David Goodenough <david.goodenough@btconnect.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: What is the number equivalient of LIMIT ALL
Date: Sun, 16 Apr 2006 21:58:23 +0100
Message-ID: <200604162158.24895.david.goodenough@btconnect.com> (raw)
In-Reply-To: <2F2A7EB72EBAF24582513E72ACCBCAAE0A286B@kniexch01.KineticNetworks.com>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE0A286B@kniexch01.KineticNetworks.com>
Works a treat thank you.
One last one (I hope).
I have a SELECT PreparedStatemet which contains:-
( tried - created) >= interval ?
where tried and created are TimeStamps. In earlier releases
I could simply use setString( 1, "5 minutes");. Or do I have to
change it to ( tried - created) >= ? and then set the interval
with setTimestamp, or what?
David
On Friday 14 April 2006 19:51, Nicholas E. Wakefield wrote:
> Try limit null, that appears to return all results.
>
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of David Goodenough
> Sent: Friday, April 14, 2006 11:22 AM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] What is the number equivalient of LIMIT ALL
>
> When I try to execute a prepared statement containing LIMIT ? the
> Postgresql JDBC now requires the value to be an integer. As the
> value for LIMIT can either be a count or ALL this raises a simple
> question, what is the numeric value that means ALL?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
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: david.goodenough@btconnect.com
Subject: Re: What is the number equivalient of LIMIT ALL
In-Reply-To: <200604162158.24895.david.goodenough@btconnect.com>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE0A286B@kniexch01.KineticNetworks.com> <200604162158.24895.david.goodenough@btconnect.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