2016-06-07 54 views

回答

3

你想要的是一個DISTINCT計數:

SELECT idx, COUNT(DISTINCT num) AS num 
FROM mytable 
GROUP BY idx 
+0

哦,這是我want.Thanks。 – zhanzezhu