mysql怎么加锁?能举一个简单的应用吗?
表锁:LOCK TABLE ...行锁:SELECT ... FROM ... WHERE ... FOR UPDATE具体用法搜一下MySQL手册吧
LOCK TABLE ...
SELECT ... FROM ... WHERE ... FOR UPDATE
1.4m articles
1.4m replys
5 comments
57.0k users