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 单片机程序上的困难问题
  • ¥15 请教某软件缓存Ts文件破解合并mp4的方法
  • ¥15 求小游戏炸弹人中关于敌人的C++代码
  • ¥15 拿到这个服务器最高权限有偿
  • ¥50 来个抓app跳转支付宝转链接的
  • ¥15 remotes安装提示没有description文件
  • ¥15 AttributeError: 'NoneType' object has no attribute 'drop_duplicates'报错
  • ¥15 以下代码,运行结果报错