mongo查询某列
2022-07-06DBQuery.shellBatchSize = 300
db.customer.find({"CId":"04"},{'uniqueCustomerId':1})
db.getCollection('customer').find({"companyId":"04"},{'uniqueCustomerId':1})
db.customer.find({"CId":"12704","_id":"65"},{"_id":1,"uniqueCustomerId":1});
查询某列,在查询条件后加,{“列名”:1}
不想要某列,在查询条件后加,{“列名”:0}