行锁(悲观锁)
其他人可能就堵死了,容易出现死锁
或者
表中加条version(版本号) 比如A和B分别加载了数据库数据,A对数据进行了修改,并让version的值+1,B修改数据时因为数据库的version和加载的version值不同,提示更新失败