我记得我写sql的时候,都把字符串值用''给包起来,如:String sql = ... VALUES('" + str1 + "', '" + str2 + ...
不知道是不是这个原因呢?

解决方案 »

  1.   

    直接输出 sql,放在数据库里查查不就行了
      

  2.   

    错误信息提示为:Error : com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '???, 3305425, ??, 1, Y, )' at line 1
      

  3.   

    a[i][j+6] 为""
           建议 你把每个值用单引号 引起来。