菜鸟问题!

byyter 2003-05-08 09:49:38
select student_score.* from student_score,lesson
where
lesson.本学期开设='是'and
lesson.课程代号=student_score.课程代号 and
student_score.学号 like '01%'
and lesson.课程代号 like '61190%

可以选出student_score中需要的行,请问怎么将选出的这写行删除?请写出语句.
...全文
3 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
john3052 2003-05-08
觉得“彭大力”同志是对的 :)
回复
pengdali 2003-05-08
delete student_score where 学号 like '01%' and 课程代号 in (select 课程代号 from lesson where 课程代号 like '61190%' and 本学期开设='是')
回复
Rewiah 2003-05-08
delete student_score
from student_score,lesson
where
lesson.本学期开设='是'and
lesson.课程代号=student_score.课程代号 and
student_score.学号 like '01%'
and lesson.课程代号 like '61190%
回复
xiyahui 2003-05-08
delete student_score
where student_score.学号 like '01%'
and lesson.课程代号 like '61190%
and 课程代号 in(select 课程代号 from lesson where 本学期开始='是')
回复
相关推荐
发帖
MS-SQL Server
创建于2007-09-28

3.3w+

社区成员

MS-SQL Server相关内容讨论专区
申请成为版主
帖子事件
创建了帖子
2003-05-08 09:49
社区公告
暂无公告