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 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器