它返回的是一个 ResultSet 集合
具体内部是什么构造啊
为什么可以通过 getString(列名)获得内容的
并不是集合,提供了两个方法可以取值,如下
public interface ResultSet extends Wrapper, AutoCloseable {
//通过下标 从1开始
String getString(int columnIndex) throws SQLException;
//通过名称
String getString(String columnLabel) throws SQLException;
}
可以看看源码
啊,我知道了,元素是一个map对吧