sdbjs 2016-08-20 02:38 采纳率: 0%
浏览 5551

mybatis insert values后面多了空格导致sql报错,用的是mysql数据库

Error updating database. Cause: 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 '  

(1,1)' at line 2

The error may involve com.ejoined.octopus.server.pc.dao.GoodsDao.insertGoodsSku-Inline

The error occurred while setting parameters

SQL: INSERT INTO GM_GOODS_SKU_REL(GOODS_ID,SKU_ID) VALUES    (?,?)

Cause: 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 '  

(1,1)' at line 2
]

  • 写回答

1条回答 默认 最新

  • yicp123 2016-08-20 14:46
    关注

    错误提示的很明显,是你的语法有问题,仔细检查下你的sql语句。
    或者把你的sql贴出来,大家帮你看看。

    参考自:
    MySQL insert用法详解 http://www.data.5helpyou.com/article421.html

    评论

报告相同问题?

悬赏问题

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