当前位置:网站首页>Batch update in the project
Batch update in the project
2022-07-05 15:58:00 【Ant HJK】
The business scenario is , Each modified value is different
dao
xml:
This step is not over yet ; here mysql Batch modification is not supported yet, and an error will be reported
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 'UPDATE weibo_content
SET
EMOTION = 0.0
W' at line 7
; bad SQL grammar []; nested exception is 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 'UPDATE weibo_content
At that time, I always thought that my grammar was wrong, but it was not , This is due to the lack of configuration when configuring the data source
&allowMultiQueries=true This statement allows multiple submissions at a time sql sentence . Especially semicolons ;
Perfect solution , Baidu found it
边栏推荐
- verilog实现计算最大公约数和最小公倍数
- F. Min cost string problem solving Report
- 复现Thinkphp 2.x 任意代码执行漏洞
- 20. [stm32] realize the function of intelligent garbage can by using ultrasonic module and steering gear
- wxml2canvas
- 18.[STM32]读取DS18B20温度传感器的ROM并实现多点测量温度
- 示例项目:简单的六足步行者
- Arduino controls a tiny hexapod 3D printing robot
- Write a go program with vscode in one article
- Nine hours, nine people, nine doors problem solving Report
猜你喜欢
[brief notes] solve the problem of IDE golang code red and error reporting
Intelligent metal detector based on openharmony
Data communication foundation - route republication
五种常见的咨询公司谈判策略以及如何维护自己的利益
抽象类和接口的区别
Fundamentals of data communication - Principles of IP routing
Data communication foundation - dynamic routing protocol rip
Summary of the second lesson
Five common negotiation strategies of consulting companies and how to safeguard their own interests
Quick completion guide for manipulator (IX): forward kinematics analysis
随机推荐
vlunhub- BoredHackerBlog Social Network
项目中批量update
具有倍数关系的时钟切换
开发中Boolean类型使用遇到的坑
Li Kou today's question -729 My schedule I
Data communication foundation smart_ Link_&_ Monitor_ Link
Coding devsecops helps financial enterprises run out of digital acceleration
16.[STM32]从原理开始带你了解DS18B20温度传感器-四位数码管显示温度
19.[STM32]HC_ SR04 ultrasonic ranging_ Timer mode (OLED display)
机械臂速成小指南(九):正运动学分析
queryRunner. Query method
Noi / 1.4 07: collect bottle caps to win awards
19.[STM32]HC_SR04超声波测距_定时器方式(OLED显示)
Codasip adds verify safe startup function to risc-v processor series
Intelligent metal detector based on openharmony
Temporary cramming before DFS examination
Usage and usage instructions of JDBC connection pool
Array sorting num ranking merge in ascending order
一文带你吃透js处理树状结构数据的增删改查
Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming