SlideShare a Scribd company logo
7
Most read
8
Most read
10
Most read
MongoDB:
• It is a database.
• It is document-oriented database.
• It is No-SQL database.
• NoSQL (originally referring to "non SQL" or "non
relational“.
RDBMS VS MongoDB
• MongoDB is an open-source document database.
•open-source - refers to any program whose source code is
made available for use or modification.
• Each document can have the same or different structure.
• MongoDB is written in C++.
• It is very easy to install and setup the MongoDB.
• Schema less : Number of fields, content and size of the
document can differ from one document to another.
• Deep query-ability : supports dynamic queries on
documents using a document-based query language .
• Ease of scale-out: extra capability and resources can be
added to one single component easily.
• No complex joins.
1. Go to http://www.mongodb.org/downloads
Click on Community Server link. Then you will find
like below for windows.
Download and install it .
1. Go to C drive if you have installed mongodb in c drive.
2. Create folder db inside data. (c:datadb)
3. Open command prompt.
4. Type mongod. Server will start on port 27017.
5. Open another command prompt.
6. Type mongo
Now you are ready to do CRUD operations.
We will use test database which is by default.
CRUD means Create, Read, Update, Delete
Create Operations
Create or insert operations add new documents to
a collection. If the collection does not currently exist,
insert operations will create the collection.
Syntax for read or query documents:
db.COLLECTION_NAME.find()
Example:
db.mycollection.find();
Method for update documents:
Syntax:
db.COLLECTION_NAME.update(SELECTIOIN_CRITERI
A, UPDATED_DATA)
Example:
db.mycollection.update({name:’Anand’},{$set:{name:’ak’}});
Method for delete documents:
Syntax:
db.collection_name.remove (DELETION_CRITERIA)
Example:
db.mycollection.remove({name:’ak’});

More Related Content

What's hot (20)

PPTX
Introduction to MongoDB.pptx
Surya937648
 
PPTX
Basics of MongoDB
HabileLabs
 
PPTX
The Basics of MongoDB
valuebound
 
PPTX
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
ODP
Introduction to MongoDB
Dineesha Suraweera
 
PPTX
Introduction to MongoDB
NodeXperts
 
PPTX
Introduction to NoSQL Databases
Derek Stainer
 
PPTX
Mongodb basics and architecture
Bishal Khanal
 
ZIP
NoSQL databases
Harri Kauhanen
 
PPTX
Relational databases vs Non-relational databases
James Serra
 
PPTX
NOSQL and MongoDB Database
Tariqul islam
 
PPTX
MongoDB
nikhil2807
 
PPTX
Sql vs NoSQL
RTigger
 
PDF
MongoDB Fundamentals
MongoDB
 
PPTX
Consistency in NoSQL
Dr-Dipali Meher
 
PPTX
NoSQL databases - An introduction
Pooyan Mehrparvar
 
PPT
Introduction to mongodb
neela madheswari
 
PPT
Introduction to MongoDB
Ravi Teja
 
PPTX
Mongo DB Presentation
Jaya Naresh Kovela
 
PPTX
NOSQL Databases types and Uses
Suvradeep Rudra
 
Introduction to MongoDB.pptx
Surya937648
 
Basics of MongoDB
HabileLabs
 
The Basics of MongoDB
valuebound
 
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
Introduction to MongoDB
Dineesha Suraweera
 
Introduction to MongoDB
NodeXperts
 
Introduction to NoSQL Databases
Derek Stainer
 
Mongodb basics and architecture
Bishal Khanal
 
NoSQL databases
Harri Kauhanen
 
Relational databases vs Non-relational databases
James Serra
 
NOSQL and MongoDB Database
Tariqul islam
 
MongoDB
nikhil2807
 
Sql vs NoSQL
RTigger
 
MongoDB Fundamentals
MongoDB
 
Consistency in NoSQL
Dr-Dipali Meher
 
NoSQL databases - An introduction
Pooyan Mehrparvar
 
Introduction to mongodb
neela madheswari
 
Introduction to MongoDB
Ravi Teja
 
Mongo DB Presentation
Jaya Naresh Kovela
 
NOSQL Databases types and Uses
Suvradeep Rudra
 

Similar to Introduction to MongoDB and CRUD operations (20)

PPTX
Introduction To MongoDB
ElieHannouch
 
PDF
Mongodb tutorial
Ashoka Vanjare
 
PPTX
Mongodb Introduction
Nabeel Naqeebi
 
PPTX
Mongo db nosql (1)
Bhavesh Sarvaiya
 
DOCX
Mongo db report
Hyphen Call
 
PPTX
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
PDF
Mongodb tutorial
sachin486983
 
PDF
MongoDB
wiTTyMinds1
 
PDF
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
PPTX
Mongo db
AbhiKhurana8
 
PPTX
MongoDB-presentation.pptx
tarungupta276841
 
PPTX
Mongodb - NoSql Database
Prashant Gupta
 
PPT
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
PPTX
MongoDB Knowledge share
Mr Kyaing
 
PPTX
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
PPTX
MongoDB.pptx
Sigit52
 
PPTX
MongoDbPpt based on python installation.
jnvcomputerlab2024
 
PPTX
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
Introduction To MongoDB
ElieHannouch
 
Mongodb tutorial
Ashoka Vanjare
 
Mongodb Introduction
Nabeel Naqeebi
 
Mongo db nosql (1)
Bhavesh Sarvaiya
 
Mongo db report
Hyphen Call
 
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
Mongodb tutorial
sachin486983
 
MongoDB
wiTTyMinds1
 
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
Mongo db
AbhiKhurana8
 
MongoDB-presentation.pptx
tarungupta276841
 
Mongodb - NoSql Database
Prashant Gupta
 
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
MongoDB Knowledge share
Mr Kyaing
 
MongoDB NoSQL - Developer Guide
Shiv K Sah
 
MongoDB.pptx
Sigit52
 
MongoDbPpt based on python installation.
jnvcomputerlab2024
 
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
Ad

Recently uploaded (20)

PDF
Basotho Satisfaction with Electricity(Statspack)
KatlehoMefane
 
PDF
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
DOCX
Online Delivery Restaurant idea and analyst the data
sejalsengar2323
 
PDF
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
PPTX
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
PDF
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
DOCX
Q1_LE_Mathematics 8_Lesson 4_Week 4.docx
ROWELLJAYMALAPIT
 
PPT
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PPTX
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
PDF
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PPTX
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
PDF
McKinsey - Global Energy Perspective 2023_11.pdf
niyudha
 
PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PPTX
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PPTX
Credit Card Fraud Detection Presentation
rasmilalama
 
PPTX
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
PPTX
Solution+Architecture+Review+-+Sample.pptx
manuvratsingh1
 
Basotho Satisfaction with Electricity(Statspack)
KatlehoMefane
 
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
Online Delivery Restaurant idea and analyst the data
sejalsengar2323
 
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
Q1_LE_Mathematics 8_Lesson 4_Week 4.docx
ROWELLJAYMALAPIT
 
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
McKinsey - Global Energy Perspective 2023_11.pdf
niyudha
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
Credit Card Fraud Detection Presentation
rasmilalama
 
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
Solution+Architecture+Review+-+Sample.pptx
manuvratsingh1
 
Ad

Introduction to MongoDB and CRUD operations

  • 1. MongoDB: • It is a database. • It is document-oriented database. • It is No-SQL database. • NoSQL (originally referring to "non SQL" or "non relational“.
  • 3. • MongoDB is an open-source document database. •open-source - refers to any program whose source code is made available for use or modification. • Each document can have the same or different structure. • MongoDB is written in C++.
  • 4. • It is very easy to install and setup the MongoDB. • Schema less : Number of fields, content and size of the document can differ from one document to another. • Deep query-ability : supports dynamic queries on documents using a document-based query language . • Ease of scale-out: extra capability and resources can be added to one single component easily. • No complex joins.
  • 5. 1. Go to http://www.mongodb.org/downloads Click on Community Server link. Then you will find like below for windows. Download and install it .
  • 6. 1. Go to C drive if you have installed mongodb in c drive. 2. Create folder db inside data. (c:datadb) 3. Open command prompt. 4. Type mongod. Server will start on port 27017. 5. Open another command prompt. 6. Type mongo Now you are ready to do CRUD operations. We will use test database which is by default.
  • 7. CRUD means Create, Read, Update, Delete Create Operations Create or insert operations add new documents to a collection. If the collection does not currently exist, insert operations will create the collection.
  • 8. Syntax for read or query documents: db.COLLECTION_NAME.find() Example: db.mycollection.find();
  • 9. Method for update documents: Syntax: db.COLLECTION_NAME.update(SELECTIOIN_CRITERI A, UPDATED_DATA) Example: db.mycollection.update({name:’Anand’},{$set:{name:’ak’}});
  • 10. Method for delete documents: Syntax: db.collection_name.remove (DELETION_CRITERIA) Example: db.mycollection.remove({name:’ak’});