データベースで重複しているすべての行を選択しようとしています。私は以下の表を持っています:
title content
aa hahaha
bb weeeee
cc dddddd
aa ggggg
aa ggggggee
dd hhhhhhh
bb ggggggg
私のクエリは
select count(post_title) as total, content from post group by post_title
それは表示されるだけです
total content
3 hahaha
2 weeeeee
しかし、私は次のようなものを見せたい
total content
aa hahaha
aa ggggg
aa ggggggee
bb weeeeeee
bb geeeeeee
何をすべきかわからないので、簡単かもしれません。助けてくれてありがとう。