
select((select max(price) from table1 where id=A limit 0,1)-(select min(price) from table1 where id=A limit 0,1))
select data from table 1 where price=(select min(price) from table1 where id=A limit 0,1)
update 表名 set 价格=价格*0.95 where 编号 like '3%'涉及到保留位数 可以看下round
例如保留一位小数四舍五入
update 表明 set 价格=round(价格*0.95,1) where 编号 like '3%'
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)