Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

How many(maximum) place holders/bind variables can a preparestatement handle

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need 2 clarifications.

1) How many maximum placeholdres/bind variables can preparedstatement can handle. Is there any maximum number for bind varaibles for preapared statement.

2) How much long query(length of the query) can handle by preparedstatement .Is there any query length limit for preparedstatement

Please provide information as soon as possible, possible post the links and documents if any.

Thanks in advance.
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing number on is probably database dependent and number two certainly is. Have a look at your database documentation, there will probably be somethign in there about maximum statement size. One thing is for sure though, if you are going anywhere near a maximum you can pretty much guarentee you are doing something wrong.
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic