我们都知道,使用关键字distinct可以查询不重复的记录。 比如: select distinct col1 from table1 select destinct * from table1 但是如果要查询列中的某一列(或几列)不重复的记录,那直接使用distinct就不能得到我们想要的结果了。 比如: col1 col2 AA AB AA BB 要是查询col1列不重复的记录下面这样就不能实现。 select distinct col1, col2 from table1 select destinct * from table1 select ...