cursor.execute(
"update ypgg set name='" + name + "',manufacturing_enterprise='" + manufacturing_enterprise + "',advertising_approval_document='" + advertising_approval_document + "',prescription_classification='" + prescription_classification + "'drug_approval_number='" + drug_approval_number + "',provinces='" + provinces + "',effective_date_of_advertisement='" + effective_date_of_advertisement + "',detailed_information='" + detailed_information + "'where id=" + str(
id))
effective_date_of_advertisement和detailed_information是日期,报了语法错误,请问正确的格式
prescription_classification + "'drug_approval_number='"
少了一个逗号
prescription_classification + "',drug_approval_number='"
这样试试呢
你传的数据是不是时间格式的,打个打个断点调试看下
您好,我是有问必答小助手,你的问题已经有小伙伴为您解答了问题,您看下是否解决了您的问题,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632