mysql求通过率用float表示出来。求大神帮忙,急。。。
来源:动视网
责编:小采
时间:2020-11-09 16:35:14
mysql求通过率用float表示出来。求大神帮忙,急。。。
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表示。
导读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表示。

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表示。
mysql求通过率用float表示出来。求大神帮忙,急。。。
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表示。