Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PreparedSatement print values ?

 
kri shan
Ranch Hand
Posts: 1486
  • 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
Sheriff
Posts: 35977
422
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

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!