`
mingzhip
  • 浏览: 397 次
  • 性别: Icon_minigender_1
  • 来自: 福州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

learing mongo~ ( part 1)

阅读更多
download it..
unzip it..
create the db directory..
Run and connect to the server..





1、创建一个聚集集合(table)
db.createCollection(“collName”, {size: 20, capped: 5, max: 100});

2、得到指定名称的聚集集合(table)
db.getCollection("account");

3、得到当前db的所有聚集集合
db.getCollectionNames();

4、显示当前db所有聚集索引的状态
db.printCollectionStats();
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics