MongoDB删除表中数据

db.getCollection(“product_test”).find()
db.getCollection(“product_test”).remove({phone : “15700000000”})
删除phone字段为15700000000的所有值

你可能感兴趣的:(mongodb,数据库,database)