大佬,你的这个代码都给你写了好多次了,你下次要是还是记不住,我就要收费了啊- with cto as(
- select 表2.ID,表2.机房 as 机房ID,机房.机房,表2.盘,表2.接口,表2.路由 from 表2 left join 机房 on 表2.机房=机房.id
- )
- select cto.id, cto.机房ID,cto.机房,cto.盘,cto.接口,cto.路由 as 路由ID,机房.机房 as 路由名称 from cto left join 机房 on cto.路由=机房.id
复制代码
这个是工程文件
|