`

NOSQL 之 Document Database 之 MongoDB

阅读更多

Official siste:
http://www.mongodb.org/

MongoDB Manual Contents:
http://docs.mongodb.org/manual/contents/

Java relates( especially Java Language Center ):
http://docs.mongodb.org/ecosystem/drivers/#java

MongoDB API Docs for java:
http://api.mongodb.org/java/

Spring Data MongoDB - Reference Documentation:
http://static.springsource.org/spring-data/data-mongodb/docs/current/reference/html/index.html

The Little MongoDB Book: (即附件)
http://openmymind.net/mongodb.pdf
引用
To get started, there are six simple concepts we need to understand.
1. MongoDB has the same concept of a database with which you are likely already familiar (or a schema for you Oracle
folks). Within a MongoDB instance you can have zero or more databases, each acting as high-level containers for
everything else.
2. A database can have zero or more collections. A collection shares enough in common with a traditional table
that you can safely think of the two as the same thing.
3. Collections are made up of zero or more documents. Again, a document can safely be thought of as a row.
4. A document is made up of one or more fields, which you can probably guess are a lot like columns.
5. Indexes in MongoDB function much like their RDBMS counterparts.
6. Cursors are different than the other five concepts but they are important enough, and often overlooked, that I
think they are worthy of their own discussion. The important thing to understand about cursors is that when you
ask MongoDB for data, it returns a cursor, which we can do things to, such as counting or skipping ahead, without
actually pulling down data.



与 RDBMS 对应关系:
collection vs. table, document vs. row and field vs. column

http://docs.mongodb.org/manual/reference/sql-comparison/


MongonDB Shell:
# 查看帮助;这个最有用!其他的大体都在里头
> help
# display current database
> db
# remove all documents from a collection, 注意只是删除该collection中的所有documents,并不删除该collection
> db.<collection_name>.remove()
# drop collection from the database,这个才是删除 collection,整个 collection,包括其中的 documents 和其对应的 indexes,都将被彻底删除,该 collection 在被 drop 后将不复存在
> db.<collection_name>.drop()



分享到:
评论

相关推荐

    mongodb 手册,帮助文件。

    mongodb document pdf nosql database

    Big.Data.NoSQL.Architecting.MongoDB.epub

    Big Data, MongoDB not only enables the user in understanding the buzz words “Big Data” and “NoSQL”, it also delves in understanding one of the popular document-based NoSQL databases “MongoDB”....

    Practical.MongoDB.Architecting.Developing.and.Administering.MongoDB

    MongoDB experts Navin Sabharwal and Shankatala Gupta Edward introduce readers to MongoDB – the leading document based NoSQL database, acquainting them step by step with all aspects of MongoDB....

    Pro MongoDB Development [2016]

    Pro MongoDB Development is about MongoDB, a NoSQL database based on the BSON (binary JSON) document model. The book discusses all aspects of using MongoDB in web applications: Java, PHP, Ruby, ...

    Practical MongoDB(Apress,2015)

    Architecting, Developing, and Administering MongoDB begins with a short introduction to the basics of NoSQL databases and then introduces readers to MongoDB—the leading document based NoSQL database,...

    NoSQL.Manager.for.MongoDB.Pro.3.1.0.5

    MongoDB provides users with a NoSQL document database system whose advantages are related to scalability (being capable of handling large data sets) and dynamic schema structuring, which enables you ...

    The Definitive Guide to MongoDB

    MongoDB, a cross-platform NoSQL database, is the fastest-growing new database in the world. MongoDB provides a rich document-oriented structure with dynamic queries that you’ll recognize from RDBMS ...

    MongoDB 3 Succinctly

    MongoDB is one of the biggest players in the NoSQL database market, providing high performance, high availability, and automatic scaling. It’s an open-source document database written in C++ and ...

    MongoDB Basics

    MongoDB Basics, from The Definitive Guide to MongoDB, 2E, shows you how a document-oriented database system differs from a relational database, and how to install and get started using it. You'll ...

    MongoDB for Java Developers(PACKT,2015)

    The MongoDB database is a well-recognized rising star in the NoSQL world. It is a document database that allows data persistence and enables you to query data in a nested state without any schema ...

    Practical MongoDB 无水印破地方 0分

    MongoDB experts Navin Sabharwal and Shankatala Gupta Edward introduce readers to MongoDB – the leading document based NoSQL database, acquainting them step by step with all aspects of MongoDB....

    MongoDB The Definitive Guide 3rd Edition

    Manage your data in a database system designed to support modern ... Ideal for NoSQL newcomers and experienced MongoDB users alike, this book also includes many real-world schema design examples.

    MongoDB in Action, 2nd Edition

    Application developers love MongoDB, a document-oriented NoSQL database, for its speed, flexibility, scalability, and ease of use. MongoDB is well-suited as a back-end for modern web applications. Its...

    mongodb win32 官网安装包

    mongodb win32 官网安装包zip包解压后使用rar重新压缩。 MongoDB (from "humongous") is an open-source document database, and the leading NoSQL database. Written in C++

    MongoDB in Action

    MongoDB in Action introduces you to MongoDB and the document-oriented database model. This perfectly paced book provides both the big picture you'll need as a developer and enough low-level detail to ...

    MongoDB The Definitive Guide

    With this authoritative introduction, you’ll learn the many advantages of using document-oriented databases, and discover why MongoDB is a reliable, high-performance system that allows for almost ...

    MongoDB权威指南英文版

    MongoDB (from "humongous") is an open-source document database, and the leading NoSQL database. Written in C++, MongoDB features:

    python+mongodb应用实践

    MongoDb是一种非关系型的数据库(Nosql)相比关系型数据库其中之一的好处是它有灵活 的拓展字段, 二、MongoDB结构 MongoDB的数据模型是面向文档性的,这里的文档指的是类似json的机构。 MongoDB层次机构如下图,...

    mongodb win32-x86_64-2008plus-2.4.11 part1

    mongodb win64位版 MongoDB (from "humongous") is an open-source document database, and the leading NoSQL database.

    [rar文件] mongodb win32-x86_64-2008plus-2.4.11 part2

    mongodb win64位版 MongoDB (from "humongous") is an open-source document database, and the leading NoSQL database.

Global site tag (gtag.js) - Google Analytics