ROUND(SUM(IF(dt=new_dt,1,0))/COUNT(1),2) 可以直接改成 ROUND(avg(dt=new_dt),2) ,能省掉if和count
5

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务