JDBC之ResultSet
来源:互联网 发布:蓝科门窗软件 编辑:程序博客网 时间:2024/05/22 15:38
ResultSet is a interface
More gnerally,ResultSet is a class involves a table returned by executeQuery cluase from jdbc,which includes the whole information we wanna get from our query,however if we want to retrive these info in java applet ,jdbc provides us a cursor.Let's see how Java API explain it
After reading this explanation , we can understand the meaning of whlie (rs.next()) {...}
In the while loop,we use cursor to access each row,but here comes the problem:how could we convert the underlying data in the set pointed by cursor to Java type?Here are the explanation from Java API:
We must provide a parameter to getter methods we invoke,which stands for the column that we wanna get information from.As for the parameter,API also give us some details about it.Let's take a look at it:
The last thing I think that our attention should be paid to is that the lifecycle of the ResultSet
0 0
- JDBC 之 ResultSet 对象
- JDBC之ResultSet对象
- JDBC之ResultSet用法
- JDBC之ResultSet
- JDBC之ResultSet接口
- JDBC基础教程之ResultSet对象
- JDBC基础教程之ResultSet对象
- JDBC基础教程之ResultSet对象
- JDBC resultSet
- JDBC ResultSet
- JDBC ResultSet
- JDBC - ResultSet
- JDBC之使用Statement,PreparedStatement,ResultSet
- java之jdbc查找(ResultSet)
- JDBC之通过ResultSet对象对结果集进行处理
- Java技术回顾之JDBC:ResultSet和RowSet
- JDBC之通过ResultSet对象对结果集进行处理
- JDBC学习第二站之ResultSet与ResultSetMeta
- batch learning和stochastic learning
- C++中关于函数的引用
- iOS手势学习
- 解决Java从MySQL读取大量数据时卡在SocketInputStream.socketRead0的问题
- 关于android真机访问本地电脑服务器以及访问数据库的那点事
- JDBC之ResultSet
- C#格式化文件大小
- Alljoyn瘦客户端库介绍
- Java如何让异常处理机制更完备规范
- Proguard代码混淆
- 关于debian和ubuntu等类Unix无法远程ssh登录解决方案
- post 请求 application/x-www-form-urlencoded。android 中文 乱码
- 计算方法-C/C++二分法求根
- 计算方法-C/C++牛顿迭代法求非线性方程近似根