如果要查每个相同的名字分别有多少个
select name,count(*) from table group by nameselect * from 表 where n_id in(select s_name from 表
group by s_name,n_money,s_zhipiao,s_date,s_lixi
having count(s_name)>1)
欢迎分享,转载请注明来源:内存溢出
如果要查每个相同的名字分别有多少个
select name,count(*) from table group by nameselect * from 表 where n_id in(select s_name from 表
group by s_name,n_money,s_zhipiao,s_date,s_lixi
having count(s_name)>1)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)