面试遇到一题,不会,来请教一下大牛,关于更新的题价格低于1000的,提价15%,高于1000的,提价5%只能使用一次update语句[解决办法]
update tset price=(case when price<1000 then price*(1+0.15) when price>1000 then price*(1+0.05) else price end)