SELECT 最多 COUNT 个
SELECT MAX of COUNT
我查询显示正数和负数的总数,但我只需要获取或显示正数或 negative.this 的最大数量是我的查询
SELECT count(`sentiment`) as count,`sentiment` FROM `sno_social_listener` WHERE `keyword_id` = 104 group by `sentiment`
ORDER BY
和 LIMIT
应该是您要查找的内容。
SELECT count(`sentiment`) as count,
`sentiment`
FROM `sno_social_listener`
WHERE `keyword_id` = 104
GROUP BY `sentiment`
ORDER BY count DESC
LIMIT 1
我查询显示正数和负数的总数,但我只需要获取或显示正数或 negative.this 的最大数量是我的查询
SELECT count(`sentiment`) as count,`sentiment` FROM `sno_social_listener` WHERE `keyword_id` = 104 group by `sentiment`
ORDER BY
和 LIMIT
应该是您要查找的内容。
SELECT count(`sentiment`) as count,
`sentiment`
FROM `sno_social_listener`
WHERE `keyword_id` = 104
GROUP BY `sentiment`
ORDER BY count DESC
LIMIT 1