SELECT t1.*, t2.* FROM database1.table1 AS t1 INNER JOIN database2.table2 AS t2 ON t2.field1 = t2.field1