Truncated incorrect DOUBLE value


mysql  + Eclipse   报错 Truncated incorrect DOUBLE value

 

解决方法: 

String sql = "update Department set dname=? and dintro=? where did=?; " 

改为   String sql = "update Department set dname=?, dintro=? where did=?; ";

 

当修改多个列的值, 需要用 " , " 连接  而不是用 "and"

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM