摘要: SQL to MongoDB Mapping ChartIn addition to the charts that follow, you might want to consider theFrequently Asked Questions section for a selection of common questions about MongoDB.ExecutablesThe following table presents the MySQL/Oracle executables and thecorresponding MongoDB executables.MySQL/Or 阅读全文
posted @ 2013-07-04 15:59 M小卢 阅读(344) 评论(0) 推荐(0)
摘要: 本文主要介绍内容:从MongoDB中请求数据的不同的方法Note:All of the examples in this document use the mongo shell interface. All of these operations are available in an idiomatic interface for each language by way of theMongoDB Driver. See yourdriver documentation for full API documentation.Queries in MongoDB 查询find()主要有fi 阅读全文
posted @ 2013-07-04 14:22 M小卢 阅读(377) 评论(0) 推荐(0)
摘要: MongoDB使用BSON文件存储在collection中,本文主要介绍MongoDB中的写操作和优化策略。主要有三种写操作: Create Update DeleteCreate:可以分为两种基本操作——insert和updates with the upsert optionInsert()BSON文件最大为16M;_id通常作为主key为了测试写操作是否成功,可以调用getLastError函数{ getLastError: 1 }db.collection.insert( )insert方法在第一次调用的时候,自动创建collection。以下例子中bios为collection名,. 阅读全文
posted @ 2013-07-04 14:21 M小卢 阅读(446) 评论(0) 推荐(0)