m0_65749592 2023-03-03 11:13 采纳率: 34.4%
浏览 23
已结题

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

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

img

  • 写回答

1条回答 默认 最新

  • wux_labs 2023-03-03 11:26
    关注

    具体要求是什么样的?使用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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录

报告相同问题?

问题事件

  • 系统已结题 3月11日
  • 已采纳回答 3月3日
  • 创建了问题 3月3日