以文本方式查看主题 - 课外天地 李树青 (http://www.njcie.com/bbs/index.asp) -- 数据库系统原理课件 (http://www.njcie.com/bbs/list.asp?boardid=19) ---- [讨论]学生问的一个SQL问题 (http://www.njcie.com/bbs/dispbbs.asp?boardid=19&id=981) |
-- 作者:admin -- 发布时间:2011/1/20 9:48:53 -- [讨论]学生问的一个SQL问题 将小明的英语成绩改为所有人的英语平均成绩
update grade set grade=(select avg(grade) from grade inner join course on grade.cid=course.cid where title=\'英语\') where sid=(select sid from student where name=\'小明\') and cid=(select cid from course where title=\'英语\') |
-- 作者:曟尐濛 -- 发布时间:2011/2/6 1:56:46 -- 谢谢老师 |