Changes

Jump to navigation Jump to search
63 bytes added ,  12:32, 25 February 2016
Line 30: Line 30:  
To show the current database type:
 
To show the current database type:
 
  db
 
  db
 +
db.adminCommand('listDatabases')
 +
db.getMongo().getDBNames()
 +
 
== Insert ==
 
== Insert ==
 
  db.movie.insert({"name":"tutorials point"})
 
  db.movie.insert({"name":"tutorials point"})
 
== Get Colection Names ==
 
== Get Colection Names ==
 
  db.getCollectionNames()
 
  db.getCollectionNames()

Navigation menu