MongoDB Commands Tutorial - insert, update, find and remove records/documents.

preview_player
Показать описание
This video tutorial shows how to use different commands to insert, update, find and remove documents in MongoDB.

MongoDB Commnds

--List out all available dbs
$ show dbs;

--Create or connect to a DB
$ use dbName;
$ use empDB;

--Create a Collection

--List out all collections in the selected db (empDB)
$ show collections;

--INSERT a document / record into the collection (employee)

--display(FIND) all the documents in the collection (employee)

--display in neat manner

--UPDATE a value in a particular document

--ADD NEW COLUMN in a document

--INCREMENT a column value

--REMOVE A COLUMN in a document

--FIND a document if not found INSERT the document

--FIND documents based on the given condition

--get COUNT of the find documents

--FIND employees whose salary is LESS THAN 20000

--FIND employees whose salary is GREATER THAN 15000}

--SORT the selected documents ASCENDING ORDER

--SORT the selected documents DESCENDING ORDER

--set LIMIT to selected documents

--DELETE A DATABASE
Рекомендации по теме
Комментарии
Автор

Thank you sir for this video ❤ it helps me a lot😊

pasupuletilovakumari
Автор

Please make a video of finding count of documents or records in last one hour

archanamaski