pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What is the number equivalient of LIMIT ALL
3+ messages / 2 participants
[nested] [flat]

* What is the number equivalient of LIMIT ALL
@ 2006-04-14 18:21 David Goodenough <david.goodenough@btconnect.com>
  0 siblings, 0 replies; 3+ messages in thread

From: David Goodenough @ 2006-04-14 18:21 UTC (permalink / raw)
  To: pgsql-jdbc

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?



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: What is the number equivalient of LIMIT ALL
@ 2006-04-14 18:51 Nicholas E. Wakefield <nwakefield@KineticNetworks.com>
  2006-04-16 20:58 ` Re: What is the number equivalient of LIMIT ALL David Goodenough <david.goodenough@btconnect.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Nicholas E. Wakefield @ 2006-04-14 18:51 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: What is the number equivalient of LIMIT ALL
  2006-04-14 18:51 Re: What is the number equivalient of LIMIT ALL Nicholas E. Wakefield <nwakefield@KineticNetworks.com>
@ 2006-04-16 20:58 ` David Goodenough <david.goodenough@btconnect.com>
  0 siblings, 0 replies; 3+ messages in thread

From: David Goodenough @ 2006-04-16 20:58 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-04-16 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 18:21 What is the number equivalient of LIMIT ALL David Goodenough <david.goodenough@btconnect.com>
2006-04-14 18:51 Re: What is the number equivalient of LIMIT ALL Nicholas E. Wakefield <nwakefield@KineticNetworks.com>
2006-04-16 20:58 ` David Goodenough <david.goodenough@btconnect.com>

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