with t as (
select id,uid,name,count(id) over (partition by userlist.id) r from userlist
)
select * from t where r>1
select id,uid,name,count(id) over (partition by userlist.id) r from userlist
)
select * from t where r>1
如果要查询不重复的记录则
with t as (select id,uid,name,rank() over (partition by userlist.id order by userlist.id desc) r from userlist
)
select * from t where r=1