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 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式