学无先后,达者为师

网站首页 编程语言 正文

sql语句:查询结果保留小数

作者:黄佳俊、 更新时间: 2022-02-04 编程语言
select count(gender) ,round(avg(gpa),1)
from user_profile
where gender = 'male'

例子中,将平均gpa保留一位小数

原文链接:https://blog.csdn.net/weixin_48419914/article/details/122279063

栏目分类
最近更新