我无法将此查询插入 mysql。我做了一个 json.dump()。我尝试了文本和blob。我尝试打开和关闭引号。
INSERT INTO mytable (campaign_object)
VALUES ( {"cpa_type": "null", "device_tablets": "True",
"language": "all", "end_date": null, "bid": "1", "budget": "1", "goal_type": "ctr",
"frequency": "null", "location": "all", "device_mobile": "True", "device_desktop":
"True", "impressions": "null", "campaign_name": "1", "start_date": "2012-09-14",
"insert_date": "2012-09-13 23:00:1347548413"})
所以...我不得不想象 MyhSQL 可以处理 json。我真的很想泡菜。