如何使用MySQL查询某个列中相同值的数量统计

2025-03-22 17:53:11
推荐回答(1个)
回答(1):

可以利用该列分组计数获得,例如:
select item,count(item) as item_count
from tbl1 group by item;