Created
April 24, 2012 13:24
-
-
Save dsci/2479642 to your computer and use it in GitHub Desktop.
Update all records at once in mongodb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.measured_data.update( { "_id" : { $exists : true } }, {$set: {"serial_number": "536883257"}}, false, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment