开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜