Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

第 14 章 MongoDB Shell

目錄

14.1. shutdownServer
14.2. show 查看命令
14.2.1. show dbs
14.2.2. show collections
14.2.3. show users
14.2.4. show profile
14.3. 切換資料庫
14.4. save
14.5. insert
14.6. update
14.6.1. multi 更新所有數據
14.6.2. upsert 更新,如果不存在則插入數據
14.7. remove
14.7.1. 刪除條件使用 _id
14.8. 刪除 collection
14.8.1. 刪除欄位
14.9. count()
14.10. 查詢
14.10.1. find() MongoDB 2.x
14.10.2. find() MongoDB 3.x
14.10.2.1. Query
14.10.2.2. 包含欄位
14.10.2.3. 排除欄位
14.10.2.4. sort()
14.10.3. group()
14.11. aggregate
14.11.1. project
14.11.1.1. $split
14.11.1.2. substr
14.11.2. groupby + sum
14.12. Indexes 索引
14.12.1. 查看索引
14.12.2. 創建索引
14.12.3. 刪除索引
14.12.4. 唯一索引
14.12.5. 復合索引
14.12.6. 稀疏索引
14.13. Map-Reduce
14.13.1. 使用 Map-Reduce 統計Web 伺服器 access.log 日誌檔案
14.14. 內嵌對象
14.14.1. Array / List 列表類型
14.15. Javascript 腳本

14.1. shutdownServer

關閉MongoDB資料庫

		
db.shutdownServer()