Skip to content
Alessandro Lacava
  • Home
  • Blog
  • Articles
  • Talks

Tag 1 posts

ResultSet

Writing about ResultSet.

Database12 Dec 2007

How to get the number of columns in a ResultSet in Java

In Java it is possible to retrieve the number of columns in a ResultSet dynamically, thanks to the ResultSetMetaData class. Here's an example: The previous code retrieves and displays the…

Read article ↗
Alessandro Lacava

Software, words, and the ideas in between.

GitHub ↗LinkedIn ↗X / Twitter ↗Email ↗
© 2026 Alessandro Lacava
RSS feedPrivacy and cookies