当前位置:Gxlcms > 数据库问题 > MySQL统计百分比结果

MySQL统计百分比结果

时间:2021-07-01 10:21:17 帮助过:4人阅读

*) AS totalCount FROM dw_audit WHERE data_level = #{dataLevel} AND task_type = #{taskType}) AS totalTable, (SELECT COUNT(*) AS errorCount FROM dw_audit WHERE data_level = #{dataLevel} AND task_type = #{taskType} AND task_state = #{taskState}) AS errorTable

2,带小数点的百分比

CONCAT(ROUND(a.cnt / b.cntSum * 100, 2),‘‘,‘%‘)

MySQL统计百分比结果

标签:ring   keyword   round   string   tab   style   from   code   alc   

人气教程排行