我有以下 mysql 查询
SELECT * FROM tbltest WHERE DATE(posted_date) BETWEEN '20120414' AND '20130414' GROUP BY title ORDER BY mostviewed DESC LIMIT 30
问题:它只返回 19 行,其中删除了重复标题行,但我想在分组后返回 30 行。我怎样才能做到这一点?
我有以下 mysql 查询
SELECT * FROM tbltest WHERE DATE(posted_date) BETWEEN '20120414' AND '20130414' GROUP BY title ORDER BY mostviewed DESC LIMIT 30
问题:它只返回 19 行,其中删除了重复标题行,但我想在分组后返回 30 行。我怎样才能做到这一点?