如果你需要的是删除数据库中的数据: delete from table a where (a.user_id,a.tw_id) in (select user_id,tw_id from vitae group by user_id,tw_id having count(*) > 1) and rowid not in (select min(rowid) from vitae group by user_id,tw_id having count(*)>1) 如果只是查出是去重:
select distinct user_id,tw_id from table
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有