首页 > 数据库技术 > 详细

MongoDB入门

时间:2021-04-06 12:45:50      阅读:17      评论:0      收藏:0      [点我收藏+]

MongoDB术语

数据库 ElasticSearch MongoDB
database es库 database
table表 index索引 collection数据集合
row行(记录) document文档(json) document文档(json)
column字段列 field域 field域
index索引 - index索引
join表关联查询 - -
pk主键 _id _id

 

 

 

 

 

 

 

 

 

MongoDB数据结构

UserList:[

  {

    userId: "1001",

    username: "lee",

    age: 18

  },

  {

    userId: "1002",

    username: "jay",

    age: 20,

    sex: "boy"
  },

]
  • UserList --> collection
  • {}           --> document
  • 属性      --> column

  

MongoDB入门

原文:https://www.cnblogs.com/ouyangbo/p/14620075.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!