我有一个 mysql 查询,列出了标题、艺术家的数量
SELECT count(Key) AS Ocount, artist, title,domain, DATE_FORMAT(`FE`,'%m') AS eMonth
FROM gr
WHERE domain = 'site.com'
GROUP BY title
ORDER BY eMonth,Ocount Desc
第一个结果是
'195', 'akon', 'beautiful', 'site.com', '01'
'20', 'ludacris', 'intro', 'site.com', '01'
'11', 'don omar', 'taboo', 'site.com', '01'
运行相同的查询
SELECT count(Key) AS Ocount, artist, title,domain, DATE_FORMAT(`FE`,'%m') AS eMonth
FROM gr
WHERE domain = 'site.com'
AND artist = 'akon'
AND title = 'beautiful'
结果
'100', 'akon', 'beautiful', 'site.com', '01'
这怎么可能?无论我如何计算,它不应该给出相同的结果吗?