------解决方案-------------------- select A.*,'出库' as [状态] from 出库表 A union all select B.*,'入库' as [状态] from 入库表 B union all select C.*,'调拨' as [状态] from 调拨表 C
------解决方案--------------------
SQL code
例如 :
select a.col1 as a1,b.col1 as a2,c.col1 as a3 from tbla a
inner join tblb a
on....
inner join tblc c
on....
------解决方案--------------------