当前位置:Gxlcms > 数据库问题 > mysql 在查询结果中进行二次查询

mysql 在查询结果中进行二次查询

时间:2021-07-01 10:21:17 帮助过:191人阅读

cardid,count(cardid) as total from p_person_info group by cardid

在第一次查询结果进行二次查询:查询身份证出现次数大于1以上

select cardid from (select cardid,count(cardid) as total from p_person_info group by cardid) temp where temp.total>1

 

mysql 在查询结果中进行二次查询

标签:person   bsp   gpo   二次   font   where   nbsp   span   sel   

人气教程排行