2011-07-31 79 views

回答

2
SELECT COUNT(DISTINCT columnname) AS Total FROM yourtable 
+0

爲了更好地解釋上面的回答,請查看MySQL 5.1參考 http://dev.mysql.com/doc/refman/5.1/en/counting-rows.html –