mysql,access上是这样写的
update Student a,Student2 b
set a.class_name=b.class_name
where a.student_num=b.student_num
==============================
sql2005上是这样写的
UPDATE [Student]
   SET [Student].[class_name] = [Student2].[class_name]
from [Student],[Student2]
WHERE [Student].[student_num] = [Student2].[student_num]
[]去掉应该也可以。
                    
                
                
            
        
浙公网安备 33010602011771号