--tab表中字段A为准分组,字段B下有不同值的数据统计
select t.A,count(distinct B) from tab t group by t.A having count(distinct B)>1;
有用的SQL语句
猜你喜欢
转载自ktc7000.iteye.com/blog/1807966
今日推荐
周排行