【发布时间】:2012-07-08 15:18:07
【问题描述】:
我正在尝试选择数据库中所有重复的行。我有下表:
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
不知道该怎么做,我认为这可能很简单。感谢您的帮助。
【问题讨论】:
标签: mysql