当没有用 EXISTS 引入子查询时,在选择列表中只能指定一个表达式。

2025-03-26 12:07:00
推荐回答(1个)
回答1:

将“00电子商务”班的姓名为“林斌”的学生选修的“中餐菜肴制作”课程修改为“旅行社经营管理”课程

update stucou
set stucou.couno=(select max(couno) from course where couname like '旅行社经营管理%')
from student,stucou,course,class
where student.stuname='林斌'
and classname='00电子商务'
and couname='中餐菜肴制作'
and student.stuno=stucou.stuno
and course.couno=stucou.couno