![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mongdb
royarn
The more
展开
-
mongdb安装及启动
mongdb for windows http://dl.mongodb.org/dl/win32/x86_64 启动mongdb 启动:mongod.exe --dbpath E:\mongdb\content\data\db 服务自启动:mongod --config E:\mongdb\content\mongo.config -转载 2017-06-24 12:52:11 · 407 阅读 · 0 评论 -
monogo查询语句
use royarn show collections db.mycol.find() #为mycol集合创建索引 为索引创建别名 创建唯一索引 db.mycol.createIndex({"name": 1}, {"name": "name_index"}, {"unique": true}) #显示所有索引 db.system.indexs.find() #Mo...原创 2018-07-25 14:23:59 · 2771 阅读 · 0 评论