日期:2014-05-18  浏览次数:48863 次

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);



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