如何判断rs.next为空
工具/原料1.查询出来的集合中拿出了一条数据如下:

2.查询一条用户信息方法代码

3.判断集合中是否有数据存在,其实这里集合已经拿到集合中的第一条数据 。

4.异常抛出的方法代码。

5.while是用来做循环输出,如果结果集里还有值" 没有则停止循环 这个一般在JSP做显示用方法代码。

6.调用方法和判断方法。

如何判断rs.next为空
工具/原料1.查询出来的集合中拿出了一条数据如下:
2.查询一条用户信息方法代码
3.判断集合中是否有数据存在,其实这里集合已经拿到集合中的第一条数据 。
4.异常抛出的方法代码。
5.while是用来做循环输出,如果结果集里还有值" 没有则停止循环 这个一般在JSP做显示用方法代码。
6.调用方法和判断方法。