mongo 更新字段值,若不存在則自動創建 查詢語句 db.getCollection("A表").update( { "id":{$eq:11} } ,{ $set:{"a":1} } , {multi: true} ) ...