python更新MySQL提示Truncated incorrect DOUBLE value

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013091013/article/details/82465236
错误写法:
​​​​​​​update data set status=1,raw_data=%s,updatetime=%d where signature=%s and status=3" % (response,time_t,token)
正确写法:
update data set status=1,raw_data='%s',updatetime=%d where signature='%s' and status=3" % (response,time_t,token)

猜你喜欢

转载自blog.csdn.net/u013091013/article/details/82465236
今日推荐