MongoDB shell中執行刪除

shell中執行刪除 標籤(空格分隔): MongoDBweb 刪除 一、刪除集合中全部文檔:db.集合名.remove({}),集合自己和索引不會被刪除。 二、根據條件刪除:db.集合名.remove({…})。shell > db.person.find() { "_id" : 1002, "name" : "wang", "age" : 30 } { "_id" : 1001, "name"
相關文章
相關標籤/搜索