V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TOTOP
20D
V2EX  ›  问与答

大神们求一条 sql 语句,如何通过 sql 语句把表 1、表 2 变成表 3,图如下。

  •  
  •   TOTOP · Apr 12, 2018 · 1493 views
    This topic created in 2949 days ago, the information mentioned may be changed or developed.
    表 1



    表 2



    ————————————————————————————————————


    表 3

    2 replies    2018-04-13 10:17:06 +08:00
    ossicee
        1
    ossicee  
       Apr 13, 2018 via Android
    视图
    hexiaolu
        2
    hexiaolu  
       Apr 13, 2018
    这问题好含糊。。。你是要查询出来而已,还是要查完插入表 3.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.