sql统计某列数据出现最多的一个id

SELECT column_name, COUNT(column_name) AS occurrence_count
FROM your_table
GROUP BY column_name
ORDER BY occurrence_count DESC
LIMIT 1;

用来展示
 

你可能感兴趣的:(SQL,数据分析与处理,sql,数据库)