数据库MySQL 子查询
1.3 子查询 语法:select * from 表1 where (子查询) 外面的查询称为父查询 子查询为父查询提供查询条件 1.3.1 标量子查询 特点:子查询返回的值是一个 -- 查找笔试成绩是80的学生 mysql> select * from stuinfo where stuno=(select stuno from stumarks where writtenexam=80); +--------+---------+--------+--------+---------+------------+ | stuNo | stuName | stuSex | stuAge
下载地址
用户评论