有人知道为什么第一个查询有效而第二个查询无效吗?
第一个查询(有效):
SELECT *,
MATCH(username) AGAINST ('ergergergergergerg' IN BOOLEAN MODE) AS _score
FROM (ci_users) HAVING _score > '0';
第二个查询(不工作):
SELECT COUNT(id),
MATCH(username) AGAINST ('ergergergergergerg' IN BOOLEAN MODE) AS _score
FROM (ci_users) HAVING _score > '0';
第一个查询正好返回 24 行,第二个查询返回 0 行,而我刚刚更改*
为COUNT(id)