摘要:
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 阅读全文
摘要:
https://www.cnblogs.com/JentZhang/p/12162170.html 获取分组后取某字段最大一条记录 方法一:(效率最高) select * from test as a where typeindex = (select max(b.typeindex) from t 阅读全文
摘要:
https://www.cnblogs.com/Sungeek/p/11150119.html 1、也可以使用SQL语句通过系统表来查询,where type=P是系统表的意思,如下: select distinct object_name(id) from syscomments where id 阅读全文