我似乎不知道如何在这上面找到一些东西。这是我的示例,它只显示了重复的列:
select column1,COUNT(column1)
from table
where column1> 0
GROUP BY column1
HAVING COUNT(column1) > 1
输出:
----------------------------
column1 | (name not defined)
----------------------------
2134567 | 2
2881992 | 3
我想要的是:
------------------------------------------------
column0 | column2 |column1 | (name not defined)
------------------------------------------------
1 | abc |2134567 | 2
2 | cde |2881992 | 3
我怎样才能做到这一点?