菜鸟问题!

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中需要的行,请问怎么将选出的这写行删除?请写出语句.
...全文
67 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
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 本学期开始='是')

34,837

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧