使用eclipse连接数据库。。插入数据的时候出错
|
复制代码Statement1=connect.prepareStatement("insert into data_file_content (file_id,order,content) values(?,?,?)"); Statement1.setString(1,s+"_"+sourceFile.getName()); Statement1.setString(2,"txt"); Statement1.setString(3,str.toString()); Statement1.executeUpdate();
|
一直提示错误
复制代码com.mysql.jdbc.excepti.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 'order,content) values('1_4.pdf.txt','txt',' nM A N N I N GnnChris A. Mattmann' at line 1
|
更多数据库问题查看:http://bbs.ibeifeng.com/thread-htm-fid-139.html