发布于 2015-09-14 15:08:39 | 121 次阅读 | 评论: 0 | 来源: 网络整理

drop

The drop command removes an entire collection from a database. The command has following syntax:

{ drop: <collection_name> }

The mongo shell provides the equivalent helper method:

db.collection.drop();

Note that this command also removes any indexes associated with the dropped collection.

警告

This command obtains a write lock on the affected database and will block other operations until it has completed.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务