Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MongoDB

ความแตกต่างระหว่าง MySQL และ MongoDB

MySQL vs MongoDB

MySQL เป็นฐานข้อมูลเชิงสัมพันธ์ (Relational) ส่วน MongoDB เป็น NoSQL Database

ตารางเปรียบเทียบหลัก

ลำดับหัวข้อMySQLMongoDB
1เจ้าของ/ผู้พัฒนาOracleMongoDB Inc.
2การจัดเก็บข้อมูลรูปตาราง (Table/Row/Column)เอกสาร (Document/Collection/Field)
3ภาษา/โครงสร้างSQL, Structured Query LanguageDynamic Schema, ไม่ต้องกำหนดล่วงหน้า
4เป้าหมายการออกแบบReplication/Sharding ไม่มีในตัวHigh availability, Scalability, Replication, Sharding ในตัว
5คำศัพท์Table, Row, Column, JoinsCollection, Document, Field, Embedded Document
6รูปแบบข้อมูลRecords in tablesJSON-like documents (BSON)