SQL子查询、内连接和外连接查询
1.掌握相关。2.体会各种查询的异同及相互之间的转换,体会各种查询的执行过程,为综合应用打下良好的基础。●查询没有选修指定课程号的学生的学号、姓名、性别、出生日期和级别。课程号由局部变量提供。declare@Cnochar(6);set@Cno='a00002';selectsnoas学号,snameas姓名,sexas性别,birthdayas生日,enter_yearas级别fromStudentwheresnonotin(selectsnofromSelect_CourseasSCwherecnoin(selectcnofromCoursewhereS
下载地址
用户评论