sql查询不重复数据

SELECT * FROM user 
WHERE
Uid IN 
( 
select min(Uid) from user 
group by Sid
)
原文地址:https://www.cnblogs.com/gjack/p/10326651.html