Skip to content

Commit 3345609

Browse files
authored
Merge pull request #668 from 52Heartz/master
修正了 经典练习题.sql 第19题的错误
2 parents 1d198fb + c5fb86b commit 3345609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

other/sql 经典练习题.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ ORDER BY RANK;
203203
-- 19、查询选修“3-105”课程的成绩高于“109”号同学成绩的所有同学的记录。
204204
select *
205205
from SCORE
206-
where CNO = '3-105' and DEGREE > ALL (
206+
where CNO = '3-105' and DEGREE > (
207207
select DEGREE
208208
from SCORE
209-
where SNO = '109'
209+
where SNO = '109' and CNO = '3-105'
210210
);
211211

212212
set @@global.sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

0 commit comments

Comments
 (0)