NotreDame
V2EX  ›  问与答

原生 go 如何实现‘两张表 left outer join 后的’动态 sql 呢?

  •  
  •   NotreDame · Jan 18, 2020 · 2121 views
    This topic created in 2339 days ago, the information mentioned may be changed or developed.

    n 个 if 写完,我自己看着都觉得恶心。。

    1 replies    2020-01-18 10:31:53 +08:00
    youEclipse
        1
    youEclipse  
       Jan 18, 2020 via iPhone
    1.这个和 go 本身无关
    2.请把问题描述清楚些
    3.如果是需要拼接 sql,fmt.Sprintf 就行。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:56 · PVG 15:56 · LAX 00:56 · JFK 03:56
    ♥ Do have faith in what you're doing.