单项选择题

已知表中第二个字段NAME,以下哪个方法可以在ResultSet集合集中获取NAME的值()

A.rs.getInt(“name”)
B.rs.getString(1)
C.rs.getObject(2)
D.以上都不可以

相关考题