select 重复记录字段 from 数据表 group by 重复记录字段 having count(重复记录字段)>1
select user_id from table_a where ds='20220320' group by user_id having count(user_id)>1;
或
select user_id,count(*) table_a where ds='20220319' group by user_id having count(user_id) >1
select 重复记录字段 from 数据表 group by 重复记录字段 having count(重复记录字段)>1
select user_id from table_a where ds='20220320' group by user_id having count(user_id)>1;
或
select user_id,count(*) table_a where ds='20220319' group by user_id having count(user_id) >1
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。