wzx155
V2EX  ›  问与答

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

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

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