mysql中去重复记录

Distinct

这个只能放在查询语句的最前面

select Distinct(id),id from table where 1

参考 : https://www.cnblogs.com/lushilin/p/6187743.html 

原文地址:https://www.cnblogs.com/fps2tao/p/8854585.html