Easiest way to get column width/length from a ResultSet - must I iterate though?
I need to get the column width/length from a ResultSet/ResultSet开发者_如何转开发MetaData
knowing only its name? I could create a map of names to indexes and get it that way, but is there another way?
You can get the columns, types and lots more from ResultSetMetaData.
You can't get the number of rows returned without iterating through it.
精彩评论