Friday, June 2, 2017

25th class at 23.05.2017

Today is uki 25th class.

Today we studied MongoDB. This is database language.  

some commands
** show dbs
{data bases show}
** use <database name>
{use database}
** db
{go to database}
**db.createCollection(name)
{creae new collection}
** db.<collection name>.insert({name:"dilai",age:22})
{insert data}
** db.<collecion name>.find()
{show detail}
**db.dropDatabase()
{delete database}
** show collection
{show the collections}
** db.<collection name>.drop()
{delete table}
** db.<collection name>.find({age:22},{name:1,_id:0})
{It will print the name of persons whose age is 22}
**db.<collection name>.find().pretty()
{print the details pretty formate}
I will be meet tommorw more than commands
bye......

No comments:

Post a Comment