I need to check the query plan for the following query on MySQL using EXPLAIN.
But the problem is the column in the where clause is binary(16). Its a guid.
explain select `title`,`ttext`
FROM ptip inner join user on user.id = ptip.userId
where ptip.titlehash = <whatever value>
Here the titlehash is binary(16) and the query gives the following error:
'Impossible WHERE noticed after reading const tables'
I tried using; where ptip.titlehash = BINARY('24dwdfsdf') but still the same;
How do you run the above query ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…