Friday, November 28, 2014

First Activity in mongoDB (INSERT VIEW)

1.) Do the step 8-15 in the this post.

    Skip above if mongodb terminals are activated.

2.) Type j={name:"myname",age:20}  in 2nd terminal

3.)and aganin type  k={x:3}

4.) We make two objects
                 1st one :- create objects with attribute name and its value.
                  2nd one :- create a attribute with value

5.)  Now type db.testData.insert(j)
and also type db.testData.insert(k)

6.) In here you will create testdata document (As i think something like table) and insert above 2 objects to that document.

7.) type show collections.

8.) You can see testData document in the resulting list.

9.)Type db.testData.find()  This is something like Select * from testData.

10.) Ylu can see above two object in the result.




No comments:

Post a Comment