当前位置: 代码迷 >> Java Web开发 >> Could not execute JDBC batch update; SQL [delete from question where id=?]; Lock wait timeout exceeded; try restarting transacti解决方案
  详细解决方案

Could not execute JDBC batch update; SQL [delete from question where id=?]; Lock wait timeout exceeded; try restarting transacti解决方案

热度:1109   发布时间:2016-04-17 13:46:54.0
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);



------解决方案--------------------
你用了数据库锁吗?
------解决方案--------------------
是不是你操作的表被数据库中其它会话锁住了,所以你不能对它进行增删改呢
  相关解决方案