aspose file tools*
The moose likes JDBC and the fly likes how to get data type of a value in resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to get data type of a value in resultset" Watch "how to get data type of a value in resultset" New topic
Author

how to get data type of a value in resultset

narayana Ega
Greenhorn

Joined: Aug 23, 2012
Posts: 26
how to get data type of a value in resultset.......can any body help me...

Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

Have a look at the java.sql.ResultSet#getMetaData() method.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to get data type of a value in resultset