Tuesday, 5 January 2016

MongoDB -- Projection(select)

Projection:


Selecting of necessary data is called Projection:
the following command makes a projection:

db.collection_name.find()
          -- similarly equal to "select * from collection_name".
db.collection_name.find({"key":"value"})
          -- similarly equal to "select * from collection_name where key=value"

No comments:

Post a Comment