Home > Database > Mysql Tutorial > mysql中如何去除小数点后面多余的0_MySQL

mysql中如何去除小数点后面多余的0_MySQL

WBOY
Release: 2016-06-01 13:18:07
Original
1840 people have browsed it

bitsCN.com 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)) 结果
2bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template