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 阅读(419) 评论(0) 推荐(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 阅读(529) 评论(0) 推荐(0)

导航