如果表的结构一样,可以试试看这样
---------------------------------
select a.*, "tableA" fromTable from a where a.a = '0' join (select b.*,"tableB" fromTable from b where b.b = '0')