把SQL字符串直接粘贴到MySql能够运行没有问题。但是使用pyMySql库execute报错,第二行语句明显没有读取完整。个人认为可能要修改MySql的配置文件才能解决这个问题。
报告的错误:(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Update jobsdata Set Status = 'on_handheld',ETA = '2021-10-07T07:57:49+01:00',Upd' at line 2")