学生信息表 student 里面有:学号 姓名
学生数学成绩表 stuMath 里面有:学号 成绩
学生英语成绩表 stuEng里面有:学号 成绩
现在我想用001这个学号 来update 两个成绩表
用一条SQL 语句如何实现?
update stuMath set 成绩=xx where student。no=stuMath。no
update stuEng set 成绩=xx where student。no=stuMath。no
怎么把这两条合在一起执行?
学生数学成绩表 stuMath 里面有:学号 成绩
学生英语成绩表 stuEng里面有:学号 成绩
现在我想用001这个学号 来update 两个成绩表
用一条SQL 语句如何实现?
update stuMath set 成绩=xx where student。no=stuMath。no
update stuEng set 成绩=xx where student。no=stuMath。no
怎么把这两条合在一起执行?
set a.成绩=xx,b.成绩=xx
where c.no=b.no and a.no=c.no;
on a.no=c.no
inner joinstuEng b on a.no=b.no
set a.成绩=xx,b.成绩=xx
set a.成绩=xx,b.成绩=xx
where a.学号=123123
set a.成绩=xx,b.成绩=xx
where a.学号=123123