数据库之MongoDB入门知识—关系型数据库与mongodb对比

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:26   2143   0

存储方式对比

在传统的关系型数据库中,存储方式是以的形式存放,而在MongoDB中,以文档的形式存在。

数据库中的对应关系,及存储形式的说明

MongoDB与SQL的结构对比详解

SQL Terms/ConceptsMongoDB Terms/Concepts
databasedatabase
table

collection

rowdocument or BSON document
columnfield
indexindex
table joinsembedded documents and linking

primary key

Specify any unique column or

column combination as

primary key.

primary key

In MongoDB, the primary key is

automatically set to the _id field.

aggregation (e.g. group by)

aggregation pipeline

See the SQL to Aggregation Mapping

Chart.

基本的命令对比:

¨èéè°

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP