java - mongodb中 将A字段等于某值 的记录的 B字段更新为指定值?
PHPz
PHPz 2017-04-18 10:25:59
0
1
313

用java语言如何实现

PHPz
PHPz

学习是最好的投资!

reply all(1)
Peter_Zhu

The official documentation of MongoDB is very complete, please refer to the official manual of the MongoDB Java driver:

http://mongodb.github.io/mong...

Update operates as follows:

collection.updateOne(eq("i", 10), set("i", 110));
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template