測試updateGoddess時(shí)異常,提示:You have an error in your SQL syntax...求解決方法
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 '(set user_name='小夏',sex=1,age=21,birthday='2018-07-06',email='xiaoxia@imooc.' at line 1
2019-08-30
檢查一下你的sql語法,把這個(gè)粘過去試試
2018-09-15
update...set...where... 一般形式,注意sql語法?
如果你使用了預(yù)處理執(zhí)行(PreparedStatement 類的execute方法),請綁定變量,而非值直接寫sql
檢查數(shù)據(jù)類型,整條sql語句語法檢查。
2018-07-07
2018-07-07