用eclipse解析xml文件,并将文件中的属性值存入mysql数据库中报错,怎么弄?
java.sql.BatchUpdateException:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorresp...
java.sql.BatchUpdateException: 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 '(wordid,wordCont,pos,ne,parent,relate,semparent,semrelate) values(0,'检查','v'' at line 1
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1269)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:955)
at com._520it.AnalyXml.InsertData(AnalyXml.java:124)
at com._520it.AnalyXml.main(AnalyXml.java:23) 展开
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1269)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:955)
at com._520it.AnalyXml.InsertData(AnalyXml.java:124)
at com._520it.AnalyXml.main(AnalyXml.java:23) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询