订单并发问题——悲观锁和乐观锁

正常:

select * from xxxx where id=x;

悲观锁:

select * from xxxx where id=x for update;

原文地址:https://www.cnblogs.com/huxiaoyi/p/10198452.html