select * from table for update wait 1000;lock table in exclusive nowait;

解决方案 »

  1.   

    select * from table for update wait 1000;--等待1秒lock table tablename in exclusive mode nowait;按照以上,还是不行啊。
      

  2.   

    select ..for update wait(second)应该是可以的吧???
    select ..for update wait(second):
            超过secong秒后加锁的用户还没有解锁的话,
            其他等待也尝试加锁的的用户就会得到一个错误信息;