If you do this in Java, there is a class called ResultSetMetaData .
You can use ResultSetMetaData.getColumnClassName() to get the fully qualified class name.
For example, if the data type in the database is VARCHAR , the value java.lang.String returned.
Also try using ResultSetMetaData.getColumnLabel() - see if it is applicable in your case.
Java Documentation for ResultSetMetaData
Bhavik shah
source share