I use JPA to report this error when I perform the update operation
after Baidu has done some work, just add the @ modifying annotation on the method
@Transactional
@Modifying
@Query(name = "edit",nativeQuery = true,value =
"UPDATE t91_gshs_xcpxtz_pxmx SET #{#gshsXcpxtzPxmx}")
void edit(GshsXcpxtzPxmx gshsXcpxtzPxmx);
Similar Posts:
- Quartz: add transaction rollback error [How to Solve]
- MySQL reports an error lock wait timeout exceeded; Try restarting transaction problem solving method
- How to Solve SVN Error: “Previous operation has not finished; run ‘cleanup’ if it was interrupted“
- When spring boot udpate delete data, the transaction management reports an error
- [Solved] Hive Update and Delete Error: Attempt to do update or delete using transaction manager
- [Solved] Error: no globalScriptEngine in $where parsing
- An error is reported when testing the springboot project: java.lang.nullpointerexception
- svn cleanup failed–previous operation has not finished [Solved]
- FAQ 66: java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
- SQL Error: Table is specified twice, both as a target for ‘UPDATE’ and as a separate source for data