摘要:
SHOW PROCESSLIST查看数据库中表的状态,是否被锁;kill id //杀掉被锁的表===================================================set autocommit=0;select * from t1 where uid='xxxx' for update //在有索引(例如uid)的情况下是行锁,否则是表锁insert into t1 values(1,'xxxxx');commit;=====================================================lock 阅读全文
posted @ 2012-09-04 19:10
赤脚大仙~
阅读(30567)
评论(1)
推荐(4)

浙公网安备 33010602011771号