标签:
我有点傻……
sql update语法,修改的字段之间要用,连接,而不是and
否则就会报错Truncated incorrect DOUBLE value……
如:
update teacher set IMAGE_URL = #{1} and UPDATE_TIME=now() where TEACHER_MOBILE = #{0} 错误
update teacher set IMAGE_URL = #{1},UPDATE_TIME=now() where TEACHER_MOBILE = #{0} 正确
基础很重要!
Truncated incorrect DOUBLE value
标签:
原文地址:http://www.cnblogs.com/qiluoao13077220/p/4648055.html