JJY

mongoDB

mongoDB command
摘要: - show dbs- use [DatabaseName] - show collections - db.[TableName].find();- db.[TableName].find({},{[ColumnName]:[Show(1/-1)]});- db.[TableName].drop(); - db.[TableName].find().limit([TopRecordNumber]); - db.[TableName].ensureIndex({[ColumnName]:[Order(1/-1)]})- db.[TableName].ensureIndex({...阅读全文

posted @ 2011-07-19 19:23 MikeJia 阅读(52) | 评论 (0) 编辑

mongoDB
摘要: 1. Run mongoDB in Windows, In command prompt, go to folder which include mongod.exe, then type: mongod.exe --dbpath D:/mongoDB/db, and click enter. If you can see [initandlisten] MongoDB starting : pid=xxxx port=xxxxxdbpath=xxxxxxxx 32-bit. That means mongoDB is running now. Then open a new command 阅读全文

posted @ 2011-07-15 14:36 MikeJia 阅读(30) | 评论 (0) 编辑

导航

统计信息

News