Mysql,查询,统计,里面count的那个字段,也是7位数的那个index,但是我写成countl ,然后想把7位数的也显示出来有写过这种操作的吗,帮我看一下

有写过这种操作的吗,帮我看一下,里面count的那个字段,也是7位数的那个index,但是我写成countl ,然后想把7位数的也显示出来有写过这种操作的吗,帮我看一下

img

具体要求是什么样的?使用group_concat应该可以满足你的需求。如果有用,望采纳,谢谢!

select parent_player_id as parentPlayerId,parent_player_index as parentPlayerIndex,
count(child_player_index) as childPlayerIndex,group_concat(child_player_index) 
from t_player_parent 
group by parent_player_id,parent_player_index order by childPlayerIndex desc