select ...from ....where ...for update

解决方案 »

  1.   

    报什么错啊?
    select * from tablename where clause FOR UPDATE
      

  2.   

    请问tomhuang春城:我在一个地方见到update后面有of column是什么意思呢?
    马上给分。
      

  3.   

    加of column就是指对该列进行锁定了,这样锁的东西小一些。
    如下:
      SELECT sid, signid FROM testtab 
             WHERE type='chType' for update of type;
    这样别得用户更新其他列时候并不收到这个句子得影响,如果要更新这一列嘛,哈哈,等吧。