Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. db.getCollection('attrib_cd').find({}).forEach(function(doc) {
  2. doc['qid'] = doc["0"];
  3. delete doc["0"];
  4. db.getCollection('attrib_cd').save(doc);
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement