Answer the question
In order to leave comments, you need to log in
Why is mysql query with BINARY running indefinitely?
SELECT BINARY `name` as bname, COUNT(*) FROM `param` GROUP BY BINARY `name` ORDER BY COUNT(*) DESC
Answer the question
In order to leave comments, you need to log in
SELECT
BINARY `name` `bname`,
COUNT(*) `cnt`
FROM `param`
GROUP BY `bname`
ORDER BY `cnt` DESC
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question