In the last blog, we created a database named "my_mongo_db" and collection named "my_first_collection". Notice the different data types:Ĭreating a New Document in Navicat for MongoDB Here's and example of a document that contains information about an American city. The value of a field can be any valid BSON data type, including other documents, arrays, and arrays of documents. MongoDB documents are composed of field:value pairs and have the following structure: BSON is a binary representation of JSON documents, though it contains additional data types, in addition to JSON. Primary Key (Default key _id is provided by mongodb) To help clarify, here's a table that compares RDBMS terminology to that of MongoDB: RDBMS While MongoDB shares some of the same terms as those of traditional RDBMSes, others are unique to NoSQL databases. In today's follow-up, we'll learn about MongoDB documents and add some to our collection. In the Working with NoSQL Databases blog, we learned how to create a new database and collection using the Navicat for MongoDB database management & design tool. Instead, it stores data as collections of documents. Unlike traditional relational databases (RDBMSes), MongoDB does not contain tables. Perhaps the best known of this new breed of non-relational database is MongoDB. The massive volumes data generated by modern interconnected systems and devices has spawned a new kind of database known as NoSQL.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |