SELECT count(case when `status`=5 then 1 else null end) as countOk,
count(case when `status`=8 then 1 else null end) as countNo FROM mtl_order where store_id = 92
转载于:https://www.cnblogs.com/hinux/p/11540259.html
SELECT count(case when `status`=5 then 1 else null end) as countOk,
count(case when `status`=8 then 1 else null end) as countNo FROM mtl_order where store_id = 92
转载于:https://www.cnblogs.com/hinux/p/11540259.html