查询结果集去重

关于查询结果集的去重
	在字段前面加上distinct
	mysql> select distinct job from emp;
	注:
		distinct只能出现在所有字段的最前面,表示所有字段联合去重
	1)统计岗位的数量
	mysql> select count(distinct job) from emp;

  

原文地址:https://www.cnblogs.com/-slz-2/p/15421339.html