🌈 搜索
📅  最后修改于: 2022-03-11 15:05:30.001000             🧑  作者: Mango
select name, COUNT(*) as count from ( select distinct id, name from mytable) as sq group by name