try {
rs=db.executeQuery("select * from A where flag=1 ";);
....
db.execute("update A set flag=0 where flag=1");
...我想先取出某些满足条件的数据,然后把标志位置为0
可是A数据表里并没有被设置成0
这是为什么?求教
rs=db.executeQuery("select * from A where flag=1 ";);
....
db.execute("update A set flag=0 where flag=1");
...我想先取出某些满足条件的数据,然后把标志位置为0
可是A数据表里并没有被设置成0
这是为什么?求教
解决方案 »
- JNI char*转jstring乱码问题
- 关于内部类的问题。求助。。
- Myeclipse9.0 不是自带的,其他的也配置好了,tomcat6.0启动不了
- 请教 Thread中的 synchronized(this)的含义
- println和print的问题!
- array中排序问题《java编程思想》请大家帮忙!!!!
- new SimpleDateFormat("hh:mm:ss dd.MM a") 的时间是12小时制的,怎样可以得到24小时制的格式?
- 小弟初学JAVA,目标锁定“东软”,想请“东软”的各位朋友给些忠告。
- 60
- lucene怎么对包含特殊字符的字段做处理:如c++
- Swing里面有没有办法动态刷新JTable中的内容,看起来就像是动态滚动,时时显示最新产生新数据!!100分求救!!!!
- 关于package的问题
DB db = new DB();
db.OpenConnection();
try{
String strSQL="update A set f=2 where f=1";
db.execute(strSQL);
}catch (Exception ex) {
ex.printStackTrace();
}finally {
db.dbclose();
}
}即使是一个操作也不行?为什么啊
2,看看Connection里的getAutoCommit是不是返回true,否则要设为true或手工Connection.commit()一下
先把自动事物关掉
自己COMMIT和ROLLBACK