mongodb1

1 mongodb is no sql datatabase

2.no sql meaning it does not store the data on row and column it stores the

storage format is bson which is binary style of json.

document:data[field:value]...[row:[column]]

collection:table

database

https://www.mongodb.com/docs/v5.0/

And condiition in mongodb:--

db.record.find({name:"anmol",rollno:1})

Less then condition in mongodb:--

db.record.find({rollno:{$lt:2}})

 db.record.find({rollno:{$lte:2}}) //less then equal to

db.record.find({rollno:{$gt:1}})//greater then


And Operatort in mongodb:--

db.collectionname({$and:[{},{}]})

db.record.find({$and:[{rollno:2},{address:"delhi"}]})

or operator

db.record.find({$or:[{rollno:2},{address:"delhi"}]})




Comments

Popular posts from this blog

interview questions js[ Anurag Singh ProCodrr]

reactnative_creation