面朝大海,春暖华开

focus on scientific computue, 3dgis, spatial database
专注于科学计算、GIS空间分析

 

2013年1月28日

SQL重复记录查询(转载)

摘要: 1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select*frompeoplewherepeopleIdin(selectpeopleIdfrompeoplegroupbypeopleIdhavingcount(peopleId)>1)例二:select*fromtesttablewherenumeber in (selectnumberfrompeoplegroup bynumberhaving count(number) > 1 )可以查出testtable表中number相同的记录2、删除表中多余的重复记录,重复记录是根据单个字段(people 阅读全文

posted @ 2013-01-28 17:57 风过 无痕 阅读(200) 评论(0) 推荐(0) 编辑

导航

向日葵支付宝收钱码