Stage 5 3. Micro Services [online] _day01 learn to build a CMS server development environment _14-MongoDb entry - Documents




The current database is test02., Like student this collection insert




_Id mongoDB primary key is automatically created. The type of the primary key of the object type is called ObjectyId

Update Documentation


The name is equal to document updates for programmers dark horse for the following content






set modifier


execute this command


inserted through the tool. Insertion of the primary key is not added, as it will automatically insert



the following data have a addr this attribute, no attribute addr above, which are non-relational database flexible expression. Each domain is not the same document can be

recommended with a consistent set of domain

format more flexible. Here, for example, can be an array addr

Delete documents, self-testing



Studio 3T query Query Builder tool








ObjecytId primary key is



so chosen here ObjectId



 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11535631.html