------解决方案-------------------- select 厂商名称 from A union select 厂商名称 from B union select 厂商名称 from C ;
------解决方案-------------------- seelct distinct 厂商名称 from ( select 厂商名称 from A union select 厂商名称 from B union select 厂商名称 from C);
------解决方案--------------------
SQL code
select 厂商名称 from A where parentID = 111
union
select 厂商名称 from B where parentID = 111
union
select 厂商名称 from C where parentID = 111
------解决方案--------------------