Over 500 Magazines for FREE!

Yes! You can subscribe to ALL of them. They will be shipped to your home FREE of cost!
Kindly click here to apply!

Hashtable

Hash Table for generating Dynamic Table from REsultset

I have a resultset where I do not know about the column and rows(Dynamic). How can I use hash table for this.

Thanks

Use ResultSetMetaData

Use ResultSetMetaData class as below

  1. ResultSetMetaData rsmd = resultsetobject.getMetaData();

and explore ResultSetMetaData Java API little bit :)

Post new comment

To combat spam, please enter the code in the image.




Do you have a better example?
We're sure you have hundreds of Java program examples.

Spare some time and submit your java example here even if you think it's too small to contribute.

Could not find what you are looking for? Search Java Examples




Feel Tired? Read Jokes & Inspirational Stories, Play Games!