一.外连接 1.left join 示例:SQL语句:select * from student left join course on student.ID=course.ID 左外连接包含left join左表所有行,如果左表中某行在右表没有匹配,则结果中对应行右表的部分全部为空(NULL). 2.右连接 right join 或 right outer join SQL语句:select * from student right join course on student.ID=course.ID 右外连接包含right join右表所有行,如果左