• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prepared Statement

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's assume we are using oracle driver, How the JDBC driver knows
that the given Prepared statement is already parsed ?.

Will it take some status from the "Oracle DB Shared Pool " for that
Prepared statement . (Or ) within the JDBC driver it is mantaining some
Pool for the Prepared Statements ?.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be different depending on the database, but from waht I've heard, Oracle matches the (case-sensitive) String. As long as you pass the same String it will be matched by the database. If you pass a slightly different string... it will be a different PreparedStatement.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic