mysql中如何去除小数点后面多余的0
发布时间:2016-12-29 来源:查字典编辑
摘要:selectcast(2.12000asdecimal(9,2))结果2.12selectcast(2.10000asdecimal(9,2...
select cast(2.12000 as decimal(9,2))结果
2.12
select cast(2.10000 as decimal(9,2)) 结果
2.1
select cast(2.00000 as decimal(9,2)) 结果
2