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表示。
Copyright © 2019- 91gzw.com 版权所有 湘ICP备2023023988号-2
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务