Skip to content

Instantly share code, notes, and snippets.

@dsci
Created April 24, 2012 13:24
Show Gist options
  • Select an option

  • Save dsci/2479642 to your computer and use it in GitHub Desktop.

Select an option

Save dsci/2479642 to your computer and use it in GitHub Desktop.
Update all records at once in mongodb
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