你创建Statement时,加入如下参数试试:Statement stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
// rs will be scrollable, will not show changes made by others,
// and will be updatable
ResultSet.CONCUR_UPDATABLE);
// rs will be scrollable, will not show changes made by others,
// and will be updatable
解决方案 »
- 求助关于Hibernate+struts2添加Spring3的问题
- 关于struts2的action配置问题
- 类似腾讯的会话管理是怎么样做的??
- 如何在jsp页面直接打开word文件
- 关于省市县三级联动
- AJAX组件 JSON-RPC出现 jsonrpc未定义 的错误
- 初学jsp,帮我看看,100分简单问题,我晕了半天!
- 有谁用过BASE64Decoder对密码加密,近来发表看法!
- 菜鸟提问:数据库查询
- 怎么配置weblogic使默认页面为index.jsp????
- who can tell me there are lots of code question when i start my Tomcat?
- 一个图形存取的问题,请大家帮忙,万分感谢
你在取數據時.要注意取的順序.
比如:
sql = "Select class,d FROM news order by id asc";
那麼你在取數據時.最好是先
tempclass = RS.getString("class");
然後
dte = RS.getString("d");
否則會出現錯誤.