用嵌套查询列出与‘张力’一个院系的学生的基本信息
1 回答
![?](http://img1.sycdn.imooc.com/5c6173cf00010eb609600960-100-100.jpg)
qq_infinite
TA贡献14条经验 获得超10个赞
user用户,学院school,sid为学院id,username 为用户名,用in是因为有学生重名
select user.* from user
where user.sid
in (select sid from user where username = '张力');
- 1 回答
- 0 关注
- 1209 浏览
添加回答
举报
0/150
提交
取消