UPDATE coursestudying SET courseName = '数学' , courseCredit = 5.0 , examinationDate = '2010-09-11' , daily = 11.0 , final = 11.0 , achievement = '' , courseAttribute = '必修' ,
 WHERE 
 student_Id = '111' AND courseId = '12' AND courseSerialNo = 12 ;真不知道sql语句出什么问题了,帮忙找找啊

解决方案 »

  1.   

    错误信息是  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE 
     student_Id = '111' AND courseId = '12' AND courseSerialNo = 12' at line 2
      

  2.   

    UPDATE coursestudying SET
    ( courseName = '数学' ,
     courseCredit = 5.0 ,  
     examinationDate = '2010-09-11' ,
     daily = 11.0 ,
     final = 11.0 ,
     achievement = '' ,
     courseAttribute = '必修' ,
      WHERE  
      student_Id = '111' 
      AND courseId = '12'
      AND courseSerialNo = 12 
    )