selectcast(2.12000asdecimal(9,2))结果2.12selectcast(2.10000asdecimal(9,2))结果2.1selectcast(2.00000asdecimal(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 mysql 小数点 多余的0