NoSQL指的是Not Only SQL,NoSQL使用的興起原因在於簡化設計、水平擴展、對數據進行更精細的控制;打破傳統關係數據庫結構,讓開發者用更緊密契合的方式實現數據庫模型。
為了快速轉換兩種資料庫,整理以下關鍵字對照表
MongoDB |
SQL |
|
資料庫 |
database |
|
資料表 |
collection |
table |
資料列 |
Document |
row |
資料行 |
field |
column |
索引 |
index |
|
資料表連結 |
embedded documents |
table joins |
主索引鍵 |
primary key |
|
彙總 |
aggregation pipeline | aggregation |