[旧]Java: JDBC 取得ResultSet的长度

Categories: Java; Tagged with: ; @ August 29th, 2010 18:19

JDBC 取得ResultSet的长度:

	resultSet.last(); // 游标移到最后, 获得rs长度
int length = resultSet.getRow();
resultSet.first(); // 还原游标到rs开头

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.