hello all,
I have one resultset and I want to know how to find out no of columns in that ResultSet
Please answer this query as soon as possible
Regards
Rahul Vyas
Printable View
hello all,
I have one resultset and I want to know how to find out no of columns in that ResultSet
Please answer this query as soon as possible
Regards
Rahul Vyas
you can obtain all the information on a resultset by getting it's resultsetmetadata object.
rs.getResulSetMetaData().
this will contain all neccesarry information, like amount of columns, name of columns, datatypes of the columns etc. have a look at the javadoc or any other online resources.