with data1 as (select * from a), data2 as (select * from b), data3 as (select * fromc) select * from data1 left join data2 on data1.id = data2.id left join data3 on data1.id = data3.id
语法基本上就是上面这样,具体的你没给出来,也写不了,with as 就是临时表,然后开始第一个是with as 后面跟着的临时表就加上逗号 加上临时表的表名加上 as 就行了, 然后最后一个不需要逗号结尾,直接写一个总的