Solve update error: Truncated incorrect DOUBLE value:

When using springboot to write an update statement, an error of Truncated incorrect DOUBLE value: was reported. I looked at the solution on the Internet and summarized:

1. Check whether the sql statement is written correctly, and the type of the field does not match.

2. The and connection is not used in the sql statement, but the connection is directly used.

I am in the second case, that is:
my sql statement is written as:

@Update("update application set apState = #{apState} and mId = #{mId} and apMNote = #{apMNote} where apId = #{apId}")

But it should be:

 @Update("update application set apState = #{apState} ,mId = #{mId} ,apMNote = #{apMNote} where apId = #{apId}")

Guess you like

Origin blog.csdn.net/zzzzzwbetter/article/details/130209865