我的查询:此查询的任何结果
SELECT
ref,
COUNT(*)
FROM
transaction
WHERE (`type` = 10
OR `type` = 11)
AND player = 1195
GROUP BY transaction.`ref`
HAVING COUNT(*) > 2;
如果我在哪里更改了字段类型:我有10和11行的行
WHERE `type` = 10
WHERE `type` = 11
我看到了结果。
player reference type
1195 10046 9
1195 10082 9
1195 18786 11
1195 18786 11
1195 18791 10
1195 18795 10
1195 18814 11
1195 18814 11
1195 18814 11
1195 18823 10
1195 18823 10
1195 18823 10
为什么?