读书人

Could not execute JDBC batch update

发布时间: 2012-01-24 23:11:54 作者: rapoo

Could not execute JDBC batch update; SQL [delete from question where id=?]; Lock wait timeout exceeded; try restarting transacti
删除数据时出错.

相关代码
String id = request.getParameter( "id ");
System.out.println( "in DeleteSingleQuesAction id: " + id);
Question ques = BusFacade.quesBus.findById(Integer.parseInt(id));
System.out.println( "ques.getId(): " + ques.getId());
BusFacade.quesBus.delete(ques);



[解决办法]
你用了数据库锁吗?
[解决办法]
是不是你操作的表被数据库中其它会话锁住了,所以你不能对它进行增删改呢

读书人网 >Java Web开发

热点推荐