?? sql中的in和exists的應用技巧2.sql
字號:
--檢索選修了課程名為'計算機原理'的學生學號與姓名
--1.
select 學生情況表.學號,姓名 from 學生情況表,成績表,課程表
where 學生情況表.學號=成績表.學號 and 成績表.課號=課程表.課號 and 課程名='計算機原理'
--2.
select 學號,姓名 from 學生情況表 where 學號 in
( select 學號 from 成績表 where 課號 in
(select 課號 from 課程表 where 課程名='計算機原理'))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -