2011-08-25 45 views

回答

3
db.mycol.update({}, { $push : { names : "michael" } }, false, true); 

退房的official docs on Updating更多的信息,一般的語法是:

db.collection.update(標準,objNew,UPSERT,多)

1

你檢查this文件?

db.your_collection.update({your_documents} { $push : { name : "michel" }})