一.外连接 1.左连接 left join 或 left outer join SQL语句:select * from student left join score on student.Num=score.Stu_id; 2.右连接 right join 或 right outer join SQL语句:select * from student right join score on student.Num=score.Stu_id; 3.完全外连接 full join 或 full…
表连接 1.select * from student,score --笛卡尔积 2.两个表的连接: 法1:select student.sno, sname, degree from student,score ----当查询的列名两个表中都有时要在列名前面加上'表名.' where student.sno=score.sno 法2:select cno, (select sname from student where student.sno=score.sno),degree from…