加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

YouhaveanerrorinyourSQLsyntax;checktheman第二次出现这个问题了,语句放mysql里执行没问题.

(2022-09-25 12:25:31)
You have an error in your SQL syntax; check the man第二次出现这个问题了,语句放mysql里执行没问题.在springboot里执行报错..乜有语法问题.也报语法问题.



You have an error in your SQL syntax; check the man第二次出现这个问题了,语句放mysql里执行没问题.在springboot里执行报错..乜有语法问题.也报语法问题.最后发现是使用了多个一次执行多个条语句没有加数据库参数:allowMultiQueries=true

以后不能自己写数据库url链接了.备份一下收藏的参数:
jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&nullCatalogMeansCurrent=true&useLegacyDatetimeCode=false&useJDBCCompliantTimezoneShift=true



发生系统错误:
### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: 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 'set @NotPublishCount := 0; 
        set @equipmentWaitFollowCount := 0;' at line 2
### The error may exist in file [123456.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters

### The error may exist in file [123.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有