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 |
This example added only key 'by' from schema. Actually, it would be Rahul. |
Specify database then drop it. |
Reference
https://docs.mongodb.com/manual/mongo/
http://theholmesoffice.com/how-to-create-a-mongodb-database/
https://www.tutorialspoint.com/mongodb/mongodb_create_database.htm
https://www.tutorialspoint.com/mongodb/mongodb_drop_database.htm
https://www.tutorialspoint.com/mongodb/mongodb_create_collection.htm
https://www.tutorialspoint.com/mongodb/mongodb_drop_collection.htm
http://theholmesoffice.com/how-to-create-a-mongodb-database/
https://www.tutorialspoint.com/mongodb/mongodb_create_database.htm
https://www.tutorialspoint.com/mongodb/mongodb_drop_database.htm
https://www.tutorialspoint.com/mongodb/mongodb_create_collection.htm
https://www.tutorialspoint.com/mongodb/mongodb_drop_collection.htm
You may leave comment to improve it. Thank you from THAILAND.
No comments:
Post a Comment