假设你 mb_member(mb_cardcode,mb_name,mb_cash)
-- 删除会员卡
delete from mb_member where mb_cardcode='会员卡号'
-- 更新会员金额 ,增加100
update mb_member set mb_cash = mb_cash + 100.00 where mb_cardcode='会员卡号'
-- 更新会员金额 ,减少100
update mb_member set mb_cash = mb_cash - 100.00 where mb_cardcode='会员卡号'
-- 更新会员金额 ,增加/减少 N
declare @mb_cash numeric(10,2)
set @mb_cash= 120
update mb_member set mb_cash = mb_cash + @mb_cash where mb_cardcode='会员卡号'
set @mb_cash= -50
update mb_member set mb_cash = mb_cash + @mb_cash where mb_cardcode='会员卡号'