里面使用到的其他类型引用,以后会慢慢分享。
而update 则可以这样: uniquecolumn from tablename where condition for update。
将要更新的行select 出来,并且加上update 的锁。保证update按顺序执行,而不会错乱