start transaction;
//1 检查用户的积分是否高于要减的分数
select score from score_manage where id = 用户id;
//2 从积分管理表用户积分减去要减的积分
update score_manage set score = score - 积分 where id = 用户id;
commit;
start transaction;
//1 检查用户的积分是否高于要减的分数
select score from score_manage where id = 用户id;
//2 从积分管理表用户积分减去要减的积分
update score_manage set score = score - 积分 where id =1;
commit;