SpringDataJpa save操作提示sql语法错误

xiaoxiao2021-03-01  10

错误提示:

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 'Desc, TestWebUrl, UpdateTime, WebUrl) values (null, 'ajaxurl', 'baby-techcenter-' at line 1

疑惑的是sql语句又不是我自己写的,怎么会出现语法错误?

最后排查原因,Desc字段是mysql的关键字,更改字段名称即可。

转载请注明原文地址: https://www.6miu.com/read-4150033.html

最新回复(0)