select A.*,B.* from Table A left join Table1 B on A.id=B.aid
----
以A表中的数据select * from table a where id not in(select aid from table1 b)-----table中有记录 但table1中没有对应关系的记录