Two Laptop Bag*
The moose likes JDBC and the fly likes PreparedSatement print values ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "PreparedSatement print values ?" Watch "PreparedSatement print values ?" New topic
Author

PreparedSatement print values ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
How to print PreparedSatement print values after setting respective values ?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ParameterMetaData#getParameterMetaData()
Didn't use, so don't know whether its works before execute or after , But this will help !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Does that give the values or just the types?

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PreparedSatement print values ?
 
Similar Threads
Question on Dan's Mock
Why this program is not printing any values???
Two classes
Date and override equals()
Precision in Java