Mongo DB
- Mogo db is a document-oriented database program
- Mongodb easy to learn and use
- it's store data in flexible
- Mongodb is free to use
usage of Mongodb
- Save big data
- Content Management and delivery
- Mobile and Social infrastructure
- User Data Management
Features of Mongodb
- High availability through built-in replication and failover
- Horizontal scalability
- End-to-end security
- Native document validation
- Schema less
- Ease to scale-out
- No complex joins
Mongo db commands
sudo mongo:-To start the server
sudo mongod:- To start the client
use "database-name":- Create a database if any database has on this name this command select that data base.
show dbs:- Shows all database
Note:-Atleast 1 file must be inside the database to show the database
db.createCollection"name":-To create a Collection
db."collectionname".drop():-To delete a Collection
db.dropDatabase():-Delete The database
db."collectionname".insert:-To insert the document to the collection
db."collectionname".remove:-Remove Collection
db."collectionname".find:-To show the document inside the Collection
$gt:-Greater than
$gte:-Greater than or Equal
$lt:-Less than
$lte:-Less than Equal
$eq:- Equal
$ne:-Not Equal
No comments:
Post a Comment