wzx155
V2EX  ›  问与答

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

  •  
  •   wzx155 · Apr 1, 2022 via Android · 2031 views
    This topic created in 1655 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   ·   Privacy   ·   Solana   ·   5685 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 71ms · UTC 07:51 · PVG 15:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.