有用的SQL语句
--tab表中字段A為準(zhǔn)分組,字段B下有不同值的數(shù)據(jù)統(tǒng)計
select t.A,count(distinct B) from tab t group by t.A having count(distinct B)>1;
select t.A,count(distinct B) from tab t group by t.A having count(distinct B)>1;
總結(jié)
- 上一篇: Five in a row
- 下一篇: QTP92测试工具