PRACTICAL 5(a): CRUD Operation in MongoDB Using Command Line Interface (CLI) In our previous practical we came across how to 'Install, Setup and Run MongoDB in Windows'. In this particular session we we’ll see basic crud operation using Mongo Shell commands We will discuss how to create a database in MongoDB, how to create a table in MongoDb, how to insert data in a MongoDB Collection and how to update and delete data from MongoDB table(Collection) · Start MongoDB Shell from Command Line Start MongoDB shell with 'mongod' command, you will see following screen as shown below. · Create connection in MongoDB Open an another instance of command prompt and connect MongoDB by supplying 'mongo' command, you will see following screen ready to work in Mongo. · Show all Databases in MongoDB To see all existing database in Mong...
Comments
Post a Comment