select * from 学生表
where ID not in (select SUTID from 成绩表 where SCORE=100 and SUB='物理')
where ID not in (select SUTID from 成绩表 where SCORE=100 and SUB='物理')
解决方案 »
- 数据插入时遇到的问题
- 请教高手:怎末样将距阵存入MYSQL database?
- 报错: DictType:gender not exist!
- mysql可以编辑自增字段?杯具了,能恢复吗。
- mysql 语句问题
- 删除MySQL数据库时出现错误
- 还是老问题,关于mysql中日期时间字段的自动写入问题。
- 怎样设置root的口令.......
- 想必各位大多都是在UNIX平台上使用一种高级语言来+MySQL来开发数据库程序的,那么你在UNIX平台上最喜欢用何种语言工具开发呢?
- sql里面如何直接插入blob数据
- 按照时间段查询如何补全不存在的日期的数据
- 执行MySQL delete语句后,为什么拿不到语句返回的结果?
where score<100 and sub =‘物理’ and 学生表.id=成绩表.sutid;
from 学生表 t1
left join (select distinct SUTID from 成绩表 where SCORE=100) t2
on t1.ID=t2.SUBID
where t2.SUBID is null