什么jdbc驱动程序?是否支持sqlStmt=sqlConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
试试sqlStmt=sqlConn.createStatement();
试试sqlStmt=sqlConn.createStatement();
解决方案 »
- Java Web 毕业设计的困惑
- javax.servlet.servletexception:UTF-8;charset=utf-8
- 昨天可以用的程序今天就不能用了。。。高手帮我看看是什么问题
- a href用法(JSP)
- 想学JSP,有没有什么好书希望大家推荐几本?
- SSH的多表操作要怎么做,增删改查
- 大家在开发JSP页面的时候是否使用applet?
- 怎么提高速度???--online
- jk2连tomcat和apache遇到的问题!100分!!
- 象这种图象类型的<input type="image" name="submit" src="ssd.jpg">,我该怎么得到返回值?request.
- 那位高手可以帮我,如何将两个word文件同时打开在一个页面里(再线等待,谢谢)
- servlet中直接连接mysql
括号里面那些东东的意思吗?有与没有有什么区别?
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
// rs will be scrollable, will not show changes made by others,
// and will be updatable
,
static int CONCUR_READ_ONLY
The constant indicating the concurrency mode for a ResultSet object that may NOT be updated.static int CONCUR_UPDATABLE
The constant indicating the concurrency mode for a ResultSet object that may be updated.static int FETCH_FORWARD
The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.static intFETCH_REVERSE
The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.static intFETCH_UNKNOWN The constant indicating that the order in which rows in a result set will be processed is unknown.static intTYPE_FORWARD_ONLY The constant indicating the type for a ResultSet object whose cursor may move only forward.static intTYPE_SCROLL_INSENSITIVE The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.static intTYPE_SCROLL_SENSITIVE The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes made by others,你自己慢慢看吧
支持回滚!要求JDBC2.0,没有ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY只是简单的Statement!JDBC1.0就可以了 !