Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PreparedSatement print values ?

 
kri shan
Ranch Hand
Posts: 1472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to print PreparedSatement print values after setting respective values ?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ParameterMetaData#getParameterMetaData()
Didn't use, so don't know whether its works before execute or after , But this will help !!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that give the values or just the types?

I know you can use a DebuggableStatement wrapper to capture the values if not.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Does that give the values or just the types?

I know you can use a DebuggableStatement wrapper to capture the values if not.

I'm wondering from a long time, is there something like this in Java ? But its there ..
A little search, and its redirect to the same forum..

http://www.coderanch.com/t/298241/JDBC/java/My-new-favourite-thing-DebuggableStatement

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic