Basics of NoSQL, Mongo DB
Basics of NoSQL, Mongo DB
MongoDB
As per CBSE curriculum
Class 11
Chapter- 20
By-
Neha Tyagi
PGT (CS)
KV 5 Jaipur(II Shift)
Jaipur Region
Introduction
• Till now we have been working on the databases
which were based on SQL consisting of table,
row, fields ,records etc.
Key-Value databases
• Just like python dictionary.
• Very simple and flexible.
• Examples-Cassandra, Amazon DyanmoDB,
ATS (Azure Table Storage, Riak, BerkeleyDB
MongoDB Terminology
MongoDB Term Description SQL Term
Field a name-value pair which stores information. Column
Document Group of Locally related fields. Row/record
Collection Group of Related documents. Table
Database A container for Collections. A MongoDB server can Database
have multiple databses.
Primary key Unique field identifies document. Primary key
Download msi
version from
here
It is required to have mogodb in running state before running Mongo. Now, you
are ready to give commmand on mongo.
Here, 2 documents
are inserted.
With the above given example only name field will be displayed with “_id”.
$eq Equal to
“Hari Prakash”
record is deleted.
www.pythontrends.wordpress.com