How do I delete my blog?
What is the number equivalient of LIMIT ALL
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PostgreSQL database development > What is the number equivalient of LIMIT ALL 17 April 2006 00:58:23

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

What is the number equivalient of LIMIT ALL

David Goodenough 17 April 2006 00:58:23
 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.pos­tgresql.org

Add comment
Nicholas E. Wakefield 14 April 2006 22:51:15 permanent link ]
 Try limit null, that appears to return all results.

-----Original Message-----
From: pgsql-jdbc-owner@po­stgresql.org
[mailto:p­gsql-jdbc-owner@postgresql.org] On Behalf Of David Goodenough
Sent: Friday, April 14, 2006 11:22 AM
To: pgsql-jdbc@postgres­ql.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.pos­tgresql.org

-------------------­--------(end of broadcast)---------­------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgres­ql.org/docs/faq

Add comment
David Goodenough 17 April 2006 00:58:23 permanent link ]
 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@po­stgresql.org> [mailto:p­gsql-jdbc-owner@postgresql.org] On Behalf Of David Goodenough> Sent: Friday, April 14, 2006 11:22 AM> To: pgsql-jdbc@postgres­ql.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?>
-------------------­--------(end of broadcast)---------­------------------> TIP 3: Have you checked our extensive FAQ?>

-------------------­--------(end of broadcast)---------­------------------
TIP 4: Have you searched our list archives?

http://archives.pos­tgresql.org

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PostgreSQL database development > What is the number equivalient of LIMIT ALL 17 April 2006 00:58:23

see also:
flashForm+Firefox: no cursor, no @…
XML xmlText or Attributes
FW: CF-Talk: Digest every hour
пройди тесты:
see also:
Firefox Users to Advise Mozilla
The freeware MediaCoder is...
ppc xD

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .