官术网_书友最值得收藏!

MongoDB data structure

Before using MongoDB, it is important to understand the schema and data structure used in it. Like a relational database, we need to first create a database in MongoDB. Along with the database, we also need to create a collection. You can consider a collection to be similar to the database table in RDBMS. 

Connect the Compass (default: no credentials) and click on the CREATE DATABASE button, and you will see model windows as follows:

You need to give the Database Name and Collection Name and click on the CREATE DATABASE button from the model window. You can now insert the data for student collection into MongoDB.

主站蜘蛛池模板: 平阳县| 东乡| 桑植县| 观塘区| 昭觉县| 连云港市| 临泽县| 信阳市| 涟源市| 石渠县| 碌曲县| 中阳县| 周宁县| 普宁市| 绿春县| 杂多县| 巴彦淖尔市| 天柱县| 津南区| 香河县| 隆尧县| 迭部县| 聂荣县| 峨山| 会泽县| 左贡县| 庆阳市| 大城县| 离岛区| 商洛市| 府谷县| 儋州市| 贺州市| 郑州市| 永春县| 枞阳县| 阿尔山市| 滁州市| 银川市| 浮山县| 德格县|