From 59431d31b244e56b18406751f8707e5f82d66ac3 Mon Sep 17 00:00:00 2001 From: leemamas <76854100@qq.com> Date: Fri, 17 May 2019 00:19:09 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E5=85=B3=E7=B3=BB=E5=9E=8B=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93MySQL.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Day36-40/关系型数据库MySQL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Day36-40/关系型数据库MySQL.md b/Day36-40/关系型数据库MySQL.md index 57e7dce..f2aaebf 100644 --- a/Day36-40/关系型数据库MySQL.md +++ b/Day36-40/关系型数据库MySQL.md @@ -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 ) @@ -696,4 +696,4 @@ insert into tb_emp values if __name__ == '__main__': main() - ``` \ No newline at end of file + ```