MySQL DISDINCT 去重查询

SELECT *, COUNT(DISTINCT field_name) FROM table GROUP BY id;

posted @ 2015-12-24 12:10  Zell~Dincht  阅读(297)  评论(0编辑  收藏  举报