Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如何使用MongoDB實現如下sql語句功能:update table1 set field1=field2+5
db.xxx.insert({a:10, b:2});db.xxx.find({a:10}).snapshot().forEach( function (elem) { db.xxx.update( { _id: elem._id }, { $set: { b: elem.a + 5 } } ); });
与 萌阔论坛 的连接断开,我们正在尝试重连,请耐心等待