标签: mongodb optimization database nosql
我错误地对错误的MongoDB集合中的所有文档应用了更新查询。现在我想要删除集合city.postcode中值W1的每个person字段。
city.postcode
W1
person
任何提示?
感谢。
更新:
它应该与此查询类似,但它不起作用:
db.person.update({$unset:{cast:1}}, false, true)