I need to get the column width/length from a ResultSet/ResultSetMetaData knowing only its name? I could create a map of names to indexes and get it that way, but is there another way?
I need to get the column width/length from a ResultSet/ResultSetMetaData knowing only its name?
Share
You can get the columns, types and lots more from ResultSetMetaData.
You can’t get the number of rows returned without iterating through it.