com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE
提示的原因是“ xxx ”double型不是正確的,錯誤的原因在於把資料庫
update user set username='xxx',password='yyy' where id='zzz'
錯寫成
update user set username='xxx' and password='yyy' where id='zzz'
將分隔符,錯寫為and
如果是用ssm框架的話,正確的寫法應該是:
<update id="updateUser" parameterType="user">
update sys_user
<set >
<if test="user_name!=null">
user_name=#{user_name} ,
</if>
<if test="user_password!=null">
user_password=#{user_password},
</if>
</set>
where user_id=#{user_id}
</update>
相關文章
- Mybatis Data truncation: Truncated incorrect DOUBLE value: '*'MyBatis
- ERROR 1292 (22007): Truncated incorrect DOUBLE value 和ORA-01722: invalid numberError
- MySQL, Incorrect usage of UNION and ORDER BYMySql
- MySQL double writeMySql
- double 函式函式
- 解決ORA-15036:disk is truncated錯誤
- OGG Get Error "Statistics reply buffer exceeded. Results truncated..."Error
- cornerstone the server may be unreachable or the url may be incorrectServer
- java.sql.SQLException: Incorrect string valueJavaSQLException
- kettle建立資源庫Incorrect integer value
- espcms /public/class_connector.php intval truncation Vul Arbitrary User LoginPHP
- C語言中關於float、double、long double精度及數值範圍理解C語言
- MySQL double write存在意義MySql
- 【MySQL】八、double write 淺析.MySql
- mysql之 double write 淺析MySql
- Invalid double崩潰分析
- Java 疑惑集之Double篇Java
- int/double資料範圍
- 【MySQL】Incorrect string value 問題一則MySql
- mysql出現Unknown or incorrect time zone: 'NULL'MySqlNull
- CF708D Incorrect Flow 題解
- mysql innodb double write概念彙總MySql
- abs(int)、fabs(double)函式用法函式
- [ABC351F] Double Sum
- MyIsam 表 “ Incorrect key file for table 't_ '; try to repair it”AI
- MySQL錯誤Incorrect file format解決方案薦MySqlORM
- 解決 eclipse 上 Keystore was tampered with, or password was incorrectEclipse
- ASM disk group mount fails with ORA-15036: disk is truncated [ID 1077175.1]ASMAI
- java.sql.BatchUpdateException: Date truncation: Out of range value for column xxxxxJavaSQLBATException
- MySQL的Double Write並不難理解MySql
- 強化學習(十)Double DQN (DDQN)強化學習
- float和double有什麼區別?
- Double BigDecimal 精度丟失總結Decimal
- 雙陣列字典樹(Double Array Trie)陣列
- ByteCTF2021 double sqliTF2SQL
- J2SE-double 型別相加型別
- java double、float型別的比較Java型別
- 關於java中的double check lockJava