freelanceprogrammers.org Forum Index » Java
ResultSet question
Joined: 18 Feb 2002
Posts: 6
ResultSet question
I can`t find two methods from API that i really
need at the moment.<br>1.How can i get the number of
columns inside my java.sql.ResultSet object? I made my
own method for that, but API method could be more
nice.<br>2.How can i get each column name?<br><br>Thx.
Joined: 01 Feb 2002
Posts: 13
ResultSet question
You`ll need to use ResultSetMetaData to get the
details of the results returned.<br>ResultSet
rsSet;<br>ResultSetMetaData rsMeta = rsSet.getMetaData();<br><br>This will
allow you to get rows, column names, etc.<br><br>-Cnik
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







