SELECT * FROM tableA 
WHERE tableA.title like '%项目%' 
union
SELECT * FROM tableB 
WHERE tableB.title like '%项目%'