V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
1010011010
V2EX  ›  问与答

[mysql] 怎么以 聚合函数返回值 是否为空 排序?

  •  1
     
  •   1010011010 · 2017-08-08 14:57:22 +08:00 · 1436 次点击
    这是一个创建于 2452 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ...
      select group_concat(...) as foo
    ...
      order by foo is null asc
    

    会返回错误 Reference 'foo' not supported (reference to group function)

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1255 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:25 · PVG 07:25 · LAX 16:25 · JFK 19:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.