sql語句代碼是這個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','課程設計','120')' at line 1請問這里是什么錯誤,看不出來
添加回答
舉報
0/150
提交
取消
