sql語(yǔ)句代碼是這個(gè)sql="INSERT INTO "+table+" ("; for(int i=0;i<num;i++){ sql +="'"+Field[i]+"'"; if(i!=num-1) sql+=","; } sql+=") VALUES ("; for(int i=0;i<num;i++){ sql +="'"+Cont[i]+"'"; if(i!=num-1) sql+=","; } sql+=");";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 ''TeachID','WorkName','WorkLoad')VALUES('000002','課程設(shè)計(jì)','120')' at line 1請(qǐng)問(wèn)這里是什么錯(cuò)誤,看不出來(lái)
添加回答
舉報(bào)
0/150
提交
取消