with as才知道

https://www.cnblogs.com/shoshana-kong/p/16580840.html

with name1 as (
    select 脚本1   
),
name2 as (
    select 脚本2
)

select *
  from name1 a
innert join name2 b on a.id = b.id

  

还能这么玩,临时分析数据不用写代码了

posted @ 2024-03-20 17:10  举起希望之灯  阅读(2)  评论(0编辑  收藏  举报