【发布时间】:2014-06-16 06:12:49
【问题描述】:
我想在 django 中使用下面的查询。
update notes from Testcase where (testid==givenid);
我试过了,但不幸的是它不起作用。我怎样才能用 django 写这个?
Testcase.objects.filter(id=givenid).upadte(notes)
【问题讨论】:
-
手册里有写,docs.djangoproject.com/en/dev/topics/db/queries/…看不懂的先在shell里试试。