For RDBMS DBAs understanding ->
DB is nothing but a Schema, Tables are nothing but a Collection in mongoDB
Commands:
List all DBs -> show dbs
Show current db -> db
show collections
make any db as current db -> use <dbname>
show collections
db.players.find()
db.players.find().pretty()
db.players.findOne()
DB is nothing but a Schema, Tables are nothing but a Collection in mongoDB
Commands:
List all DBs -> show dbs
Show current db -> db
show collections
make any db as current db -> use <dbname>
show collections
db.players.find()
db.players.find().pretty()
db.players.findOne()
No comments:
Post a Comment