wzx155
V2EX  ›  问与答

根据字段 from 分组,怎么把字段为“wxxcx”和“wx_xcx”的分到一组,并都显示成“wxxcx”。

  •  
  •   wzx155 · Apr 1, 2022 via Android · 1770 views
    This topic created in 1529 days ago, the information mentioned may be changed or developed.
    1 replies    2022-04-06 10:28:45 +08:00
    jifengg
        1
    jifengg  
       Apr 6, 2022
    如果就必须的话,先按照 from group by ,作为子查询,外面再套一层
    replace(from,'wx_xcx','wxxcx') 继续 group by 。

    不是必须的话,从业务或代码去解决这个问题吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2646 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    ♥ Do have faith in what you're doing.