1、Result里面包含了一个getMetaData()方法,该方法返回该ResultSet对应的ResultSetMetaData对象。

2、ResultSetMetaData包含的方法:

  1》int getColumnCount():返回该ResultSet的列数量。

  2》String getColumnName(int column):返回指定索引的列名。

  3》int getColumnType(int column):返回指定索引的列类型。

3、Java 7的RowSet

   RowSet接口继承了ResultSet接口。

相关文章:

  • 2021-04-29
  • 2021-06-21
  • 2021-06-06
  • 2021-10-14
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-05-19
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案