Mongodb 字段类型转换

db.diningmembers.find({modifedDate:{$type:9}}).forEach(function(x){x.tel = String(x.tel);db.diningmembers.save(x)});

http://www.linxh.blog.chinaunix.net/uid-15795819-id-3873422.html

posted @ 2015-10-13 18:47  风の丘  阅读(982)  评论(0编辑  收藏  举报