摘要: xxxx:PRIMARY> show collections;friendRgroupgroupmgroupregroupr 错误以group保留字创建的集合删除方法: db.getCollection("group").drop(); 阅读全文
posted @ 2021-02-02 13:19 da0h1 阅读(175) 评论(0) 推荐(0) 编辑
摘要: mongodb 使用 group 查询出错 # Issue 最近使用 Mongodb 创建 collection 时,创建名为 project.share.group 的集合时会创建成功,并且代码显示数据已保存到集合,在 shell 中也能够通过 show collections 能够查看到对应集合 阅读全文
posted @ 2021-02-02 13:17 da0h1 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 为了删除具有_或-等特殊字符的集合,您需要使用以下语法- db.getCollection("yourCollectionName").drop(); 为了理解这个概念,让我们用文档创建一个集合。使用文档创建集合的查询如下- > db.createCollection("_personalInfor 阅读全文
posted @ 2021-02-02 12:59 da0h1 阅读(1752) 评论(0) 推荐(0) 编辑