Wednesday, February 20, 2019

Basic MongoDB(NoSQL) Part 04: Specify/Create/Drop database and Create/Drop collection

MongoDB Part 04: Specify/Create/Drop database and Create/Drop collection


>   Specify database   <
>>>   Create database   <<<
>    Drop database     <
>>>   Create collection  <<<
>    Drop collection    <

        The approaches about to specify, create and drop database are likely Oracle DBMS since it has its own built-in methods and tables, has to specify database before performing actions. 

   According to previous example the collection(a webpage) may have many documents(sets of comment) but it's an example document and its schema here:
This is a document and its schema below

mongod.exe, mongo.exe, server and client respectively
 Create database 
This example added only key 'by' from schema. Actually, it would be Rahul.
 Drop database 
Specify database then drop it.
 Create collection 
A collection will be automatically created once a document is inserted.
Be careful to check instance before performing actions!

Reference

 
You may leave comment to improve it. Thank you from THAILAND.

No comments:

Android OS: Fundamental Awareness

Thai government single policy     *** IMPORTANT *** Please carefully take a look this post https://chattrawits-security.blogspo...