![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MongoDB
weixin_43867432
这个作者很懒,什么都没留下…
展开
-
[学习] MongoDB - Java 使用
记录一些 容易忘的细节通过Aggregation 进行条件查询 // lookup 关联表 Aggregation aggregation = Aggregation.newAggregation( Aggregation.lookup("sc", //从表表名 "sid", // 主表关联字段 "sid", //从表关联字段 ..原创 2020-11-06 16:38:19 · 93 阅读 · 0 评论 -
[学习] MongoDB使用
常用指令/* 切换数据库 */show dbs ;/* 重启 MongoDB 服务 */db.shutdownServer();/* 切换数据库 */use dbname ;/* 查询该库的用户 */db.system.users.find({}) .projection({}) .sort({_id:-1}) .limit(100) ;/* 认证函数 */db.auth("qiuhongjie","123456");语法2.1 集合/* 查询.原创 2020-11-02 17:20:41 · 71 阅读 · 0 评论 -
[记录] 连接 Mongodb时:尝试在主机上运行命令“ whatsmyuri”时出现网络错误
将本地的mongodb进程杀死 重新启动原创 2020-10-30 16:00:18 · 820 阅读 · 0 评论