首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Could not execute JDBC batch update; SQL [delete from question where id=?]; Lock

2012-01-24 
Could not execute JDBC batch update SQL [delete from question where id?] Lock wait timeout excee

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



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

热点排行