如何修复mysql的代码可能在m> 10
SELECT
q_mem_tim.Hno,
q_mem_tim.Moo,
q_mem_tim.tambol,
count(*) as m
FROM
q_mem_tim
WHERE
m > 10
GROUP BY
q_mem_tim.Hno,
q_mem_tim.Moo,
q_mem_tim.tambol
order by m desc
答案 0 :(得分:3)
尝试
SELECT
q_mem_tim.Hno,
q_mem_tim.Moo,
q_mem_tim.tambol, count(*) as m
FROM
q_mem_tim
GROUP BY
q_mem_tim.Hno,
q_mem_tim.Moo,
q_mem_tim.tambol
HAVING
count(*) > 10
order by m desc