update tb_score
set score=score+10
from tb_student
where tb_student.student_dempt='计算机科学与技术系' and --這裡都打錯了
tb_score.student_no=tb_student.student_no第一句你沒寫關聯。當然全改了。
第二句寫了關聯就只會修改條件內有關聯的數據了
set score=score+10
from tb_student
where tb_student.student_dempt='计算机科学与技术系' and --這裡都打錯了
tb_score.student_no=tb_student.student_no第一句你沒寫關聯。當然全改了。
第二句寫了關聯就只會修改條件內有關聯的數據了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货