• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc prepared statement

 
anbarasan nadar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we are passing input parameteres prepared statement get compiled again
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a problem or a question? Prepared Statements should be compiled once only.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34073
336
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anbarasan,
Just to expand on this: a prepared statement is compiled once. Each time it is called, the different input parameters are bound to the question marks.

And welcome to JavaRanch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic