0
点赞
收藏
分享

微信扫一扫

SQL保留两位小数


select   cast(10.1235456 as decimal(10,2))

如果想四舍五入的话,可以嵌套round

select   cast(round(10.1235456,2) as decimal(10,2))


举报

相关推荐

0 条评论