三天不敲这些命令基本上就忘光了,还是得记录一下。
查看存储过程
db.system.js.distinct(“_id”);
保存存储过程
db.system.js.insert({
“_id” : “myFunction”,
“value” : function(arg1, arg2) {
print(“………………….”);
print(“———打印参数begin{ ———–“);
print(“arg1 –> ” + arg1);
print(“arg2 –> ” + arg2);
print(“———打印参数 end }———–“);
}
);
删除存储过程
db.system.js.remove({
_id : “myFunction”
})
调用存储过程
db.eval(“myFunction(‘1’, ‘SD’);”)
分类目录
- arch/management (17)
- computer (38)
- java/j2ee (305)
- lnmpa (238)
- mac/iphone/ipad/android (11)
- mysql/oracle/postgresql (126)
- os/software (75)
- other (518)
- python (6)
- redis/memcached/mongo (31)
- sitebuild (143)
随便看看
友情链接
收藏链接