Update 关系型数据库MySQL.md

pull/119/head
leemamas 2019-05-17 00:19:09 +08:00 committed by GitHub
parent 0d2f07087d
commit 59431d31b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@
); );
-- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算) -- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算)
select stuname from tb_student where stuid=( select stuname from tb_student where stuid=any(
select stuid from tb_score group by stuid having count(stuid)>2 select stuid from tb_score group by stuid having count(stuid)>2
) )