GBase 8a
运维管理
文章

查看是否存在笛卡尔积

发表于2026-04-10 23:34:3718次浏览0个评论

select t.a, count(1) from test t group by t.a order by count(1) desc limit 20;

select a,count(*) from t group by a having count(*) >1 order by a desc;

select col1 ,sum(1) from tab where 带上条件 group by col1 having count(1)>1 order by 2 desc limit 20

评论已关闭