select *from t1 left join t2 on t1.id=t2.idselect *from t1 inner join t2 on t1.id=t2.id简单列举2种关联,其他的自己去查把,,,就是内关联,外关联什么的