xboyjimmy 2016-02-23 02:51 采纳率: 66.7%
浏览 1849
已采纳

SSH下WEB项目,insert时报如下错误,求大神解答

Http status: 200 OK
ajaxOptions: parsererror
thrownError: SyntaxError: Unexpected token <
Struts Problem Report
Struts has detected an unhandled exception:

Messages:

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 'describe, isDel, addTime) values (1, 'å??称', 'æ??è¿°', 0, '2016-02-23 10:45:20' at line 1
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 'describe, isDel, addTime) values (1, 'å??称', 'æ??è¿°', 0, '2016-02-23 10:45:20' at line 1
File: org/hibernate/exception/internal/SQLExceptionTypeDelegate.java
Line number: 82
Stacktraces
org.hibernate.exception.SQLGrammarException: 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 'describe, isDel, addTime) values (1, 'å??称', 'æ??è¿°', 0, '2016-02-23 10:45:20' at line 1

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 'describe, isDel, addTime) values (1, 'å??称', 'æ??è¿°', 0, '2016-02-23 10:45:20' at line 1

  • 写回答

1条回答 默认 最新

  • tony4geek 2016-02-23 03:09
    关注

    语法错误,还有你上面那个是乱码吗? 'describe, isDel, addTime) values (1, 'å??称', 'æ??è¿°', 0, '2016-02-23 10:45:20

    建议将sql语句拷贝出来放到你的 sql 环境中再测试看看,

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译