一直报错提示"You have an error in your SQL syntax"

检查多次确认SQL没写错,查资料后发现是连接字符串问题

如果需要执行批量更新,必须在连接字符串加上allowMultiQueries=true

 

例如:jdbc:mysql://localhost:3306/searchengine?allowMultiQueries=true

 

相关文章:

  • 2021-06-14
  • 2021-12-22
  • 2021-07-28
  • 2021-11-05
  • 2021-04-09
  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-07-29
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2021-11-16
相关资源
相似解决方案