Mongo DB
Mongo DB
Mongo DB
Documents
document: an ordered set of keys with
associated values.
In javascript, for example, documents are
represented as an objects:
{greeting : hi, good morning}
A simple document consist of a single
key, greeting, with a value hi, good
morning
A complex document consist of multiple
key/value pairs:
{greeting : hi, good morning, id:2}
Conti..
The
Collections
A
collection is a group of
documents.
If a document is the MongoDB
analog of a row in relational
database, then a collection is the
analog to a table.
_id:
_id
MongoDB Advantages
Advantages
Db.help()
To get list of commands type
db.help() in mongodb client.
This will give you list of
commands as follows:
Ref:
http://navinwbackup.blogspot.in/201
4/07/pl01-osd-practicals.html
http://www.imfrosty.com/2014/10/pl
1-b2.html