MySQL group-by very slow

后端 未结 5 2141
予麋鹿
予麋鹿 2021-02-07 05:34

I have the folowwing SQL query

SELECT CustomerID FROM sales WHERE `Date` <= \'2012-01-01\' GROUP BY CustomerID

The query is executed over 11

5条回答
  •  别跟我提以往
    2021-02-07 05:53

    I had the same problem, I changed the key fields to the same Collation and that fix the problem. Fields to join the tables had different Collate value.

提交回复
热议问题