Mongodb Classroom image

Anil  Bist / Professional / DataBase

 
To post your Question Join Classroom
 
Lesson Topics's No:-  ||
Lessons:-Basic commands on mongo shell

Basic commands on mongo shell

Show all available databases:

show  dbs ;

 

Select a particular database to access, e.g. mydb. This will create mydb if it does not already exist:

use  mydb ; 

 

Show all collections in the database (be sure to select one first, see above):

show  collections ; 

 

 Show all functions that can be used with the database:

db.mydb.help ();

 

To check your currently selected database, use the command db

>  db
mydb 

 

db.dropDatabase() command is used to drop a existing database.
 

db.dropDatabase () 
 
 
 
image
Anil  Bist

Skills    Mongodb

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

in 2006, i Join a web development company in Bangalore and start work on "Ruby on Rail" this is my first web development framework and we worked in this framework and develop four to five project after some time , I moved to JEE/Sturst frame work,

After some time i decided that now times come and I have to go on in my own way and I started a company name is "Soarlogic&q
Explore

 

  Students (0)