m0_65749592 2023-03-03 11:13 采纳率: 35.5%
浏览 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日

悬赏问题

  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?
  • ¥15 部分客户订单定位有误的问题
  • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
  • ¥15 Bug traq 数据包 大概什么价