0
嗨我很新的python。我在我的卡桑德拉表中有以下专栏。我需要更新某个值(可设置为true)。我如何通过python脚本来做到这一点?更新Cassandra Json值与Python脚本
{
"rowId": "SYSTEM",
"status": null,
"startDate": null,
"endDate": null,
"creationDate": 1457051550494,
"overview": null,
"displayable": false,
"checklistType": "NUMERIC"
}
我试过下面哪个不行。 (压痕错误预期的缩进块)
session.execute('UPDATE CourseAssignment SET jsonObject["displayable"] = fromJson("true") WHERE "rowId" = \'%s\'' % jsonObject["SYSTEM"] )
谢谢...我明白了。 – anoj