Update yyyy Set Mark=0 from (select StudentID,ClassID from xxxx where ……)tem
where yyyy.StudentID=tem.StudentID and yyyy.ClassID=tem.ClassID
where yyyy.StudentID=tem.StudentID and yyyy.ClassID=tem.ClassID
调试欢乐多
select StudentID,ClassID from xxxx,yyyy
where StudentID=yyyy.StudentID and ClassID=yyyy.ClassID