select *
from 表1 a
join 表2 b on b.guid = a.sub_system and b.status = '已上线'
join 表3 c on b.port_in like concat('%',c.name,'%')
where b.subsystem_name = 'XXXX'
jion连接用like concat时,要注意b表中字段包含两个两个C表中的字段
select *
from 表1 a
join 表2 b on b.guid = a.sub_system and b.status = '已上线'
join 表3 c on b.port_in like concat('%',c.name,'%')
where b.subsystem_name = 'XXXX'
jion连接用like concat时,要注意b表中字段包含两个两个C表中的字段