随笔分类 -  芒果

摘要:192.168.1.203 192.168.1.204 192.168.1.202 for (var i=1;i<=40;i++){ sh.splitAT('test.dz',{sn:i*100000}) } # 导入数据 ./bin/mongoimport -d test -c dz --type 阅读全文
posted @ 2018-11-28 09:56 慕沁
摘要:查找 $mod求余数 。find( {goods_id:{$mod:[5,0]},}, #余数为0的 ) $exists 有某一个属性 .find( {age:{$exists:1}},{} ) $types #是某种类型 .find( {age:{$types:1}},{} ) 游标 游标不是查询 阅读全文
posted @ 2018-11-22 15:51 慕沁
摘要:MongoDB的概念 安装 直接在官网下载二进制文件 mongodb要求磁盘剩余空间>=4G, 如果不够,可以用 --smallfiles 选项 ./bin/mongod -f mongod.conf 阅读全文
posted @ 2018-11-22 08:49 慕沁