Friday, October 10, 2014

NoSql console

NOSQL
This is a very brief summary with links to refer further



  1. http://www.youtube.com/watch?v=2ajlfURobd8


  • A you tube video explaining how to use mongo db (which is using NoSql) for basic operations using console

      1. first go inside bin n start server "mongod" in a command prompt
      2. In another command prompt go inside bin, type mongo
                             (automatically connects to test db)
                               use db_mydb
                                 //creating records and inserting to employee table
                                    emp1=(name :"mal" )
                                     db.employee.save(emp1);

                                        //directly inserting
                                          db.employee.insert((name : "Malsha"));

                                                 //view
                                                 db.employee.find();
                                                  //counting records
                                                    db.employee.count();

                                                           //updating
                                                           //adding new,deleting existing field of a record
                                                      using $set n $unset

                                                                / /deleting
                                                                   using remove

                                            No comments:

                                            Post a Comment