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

05-09-2006, 07:30 AM

graviton

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.