查询出datatable中重复的项。例如:AABAB最后查出的结果为AB
使用sql语句去重复,select * from 表名 where id in(select max(id) from 表明 group by 重复字段名 HAVING COUNT(*)>1)也可使用Distinct
重复字段名
distinct
例如 select distinct * from 表明 即可 这个函数是去重的