select Name from table4 join 
(select 'table1' as tableID,ID,name from table1
union
select 'table2' as tableID,ID,name from table2
union
select 'table3' as tableID,ID,name from table3) as a 
on table4.tableID=a.tableID and table4.ID=a.ID
不知道行不行,试试