qq_16634731 2016-03-01 08:35 采纳率: 0%
浏览 2115

sql,根据组中的一些数据,划分成不同类别的,组合成一个新的表

有一组数据是这样的,根据qujian 划分成三个 不同的情况
appid desciptions qujian nums
app_1 璐璐 fiveminute 9
app_1 璐璐 fiveToten 3
app _1 璐璐 lessfinveSecond 1
app_2 五五 fiveminute 4
app_3 柳柳 fivetoten 3
...
变成
appid desciptions lessfinveSecond fiveToten fiveminute
app_1 璐璐 1 3 9
app_2 五五 0 0 4
app_3 柳柳 0 3 0
...
谢谢各位大侠 帮助在下小弟啦。

  • 写回答

1条回答

  • a0984 2016-03-01 08:59
    关注

    你想表达的意思是什么?

    是在数据库已有一个表,表里有数据:
    appid desciptions qujian nums
    app_1 璐璐 fiveminute 9
    app_1 璐璐 fiveToten 3
    app _1 璐璐 lessfinveSecond 1
    app_2 五五 fiveminute 4
    app_3 柳柳 fivetoten 3

    然后你想新建一张表,把数据变成:
    appid desciptions lessfinveSecond fiveToten fiveminute
    app_1 璐璐 1 3 9
    app_2 五五 0 0 4
    app_3 柳柳 0 3 0

    ??

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记