I'm just wondering if it's possible to retrieve the the most entered entries from the mysql database
It's like this :
ID - Value
Id is auto increment, and value is the text that is being entered, i'd like to have it display the top 10 most entered terms, how could i do that?
SELECT value, COUNT(value) as times
FROM table
GROUP BY value ORDER BY times DESC LIMIT 0,10;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.