您好,欢迎访问一九零五行业门户网

mysql 求通过率 用float表示出来求大神帮忙,急

mysql
select ((select count(ut.status) from user_test ut where ut.userid=252 and ut.status=1)/(count(ut.status))) as '考试通过率'
from user_test ut
where ut.userid=252 我求的是通过率,要怎么把select后面查询出的结果用float表示。
其它类似信息

推荐信息