zoukankan      html  css  js  c++  java
  • Mongo DB Study: first face with mongo DB

    Mongo DB Study: first face with mongo DB

    1.  study methods:

    1.  Translate: I am the mongo DB organization website truck man. And I may use my knowledge to help myself learn more.

    2.  Practice: only the practice can make me what I have done and what I can do.

    2.  Ooh, Mongo Db is an open source (c++) no SQL database. This is what I very like it firstly. Next, with the use of it may make me more like it. Expecting!

    3.  Today is the first use with it.

    First we should get it:

    www.mongodb.org you can get what you want.

    I get the 32-bit r-2.4.4(the newer one, and with the information the even number release is more stable) after download the file, extract into the mongo DB directory like this.

                           

    Secondly, I add the mongo into the environment variables; make sure we can use it more quickly with the CMD of the win + R.

    Like this:

    Thirdly, let’s try it.

    With the CMD, first we should point the database path like this:

    If you see like this:

    Congratulations, you get it. and you can with the IE confirm it.

    http://localhost:217017 (mongo use the default port 217017), and you can with the 218017 with more details.

    Surely, we can use mongo db now.

    With a new CMD. And use command “mongo” start to use the database of mongo.

    Insert:

    We doesn’t must create a “table”, but we can use the insert method create a collection like this.

    Find:

    We may want to see what we have inserted. We can use find like the “select” with SQL to find it out.

    Update:

    We may want to update one item of the collection. Like this:

    Remove:

    You can remove the item. Like this:

    简历: 三年国内著名软件公司Java信息系统开发经验。熟悉税务相关业务知识。一年以上互联网公司工作经验。 目标职位: Java研发工程师、大数据、推荐算法等。 目标城市: 北京,杭州,沈阳。 联系方式: 邮箱:hecuking@126.com
  • 相关阅读:
    Win32应用中创建多窗口
    同时控制多个UIScrollView对象
    在后台代码中设定控件的Visibility
    VC中使用GDI+
    悬垂指针(Dangling pointer)和野指针(Wild pointer)
    在Windows下通过命令行界面编译并生成 .exe
    C++流重定向到文件
    读写文本文件和二进制文件——二进制模式
    使用MahApps.Metro
    WPF之GUI编写
  • 原文地址:https://www.cnblogs.com/accipiter/p/3139061.html
Copyright © 2011-2022 走看看