欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何实现 mysql 除法保留两位小数 - 首次计算:

最编程 2024-04-22 22:17:51
...
select convert(t/100,decimal(15,2)) as money from test
登录后复制

917e657890419ea8763c6f116cedcb29.png

select convert(t/100,decimal(10,2)) as money from test
登录后复制

1b5297548730f280b41ebc869fbbed33.png

推荐阅读