软件下载吧文章资讯

分类分类

mongodb 数据如何生成Insert 语句的示例

2024-02-07 12:09作者:下载吧

执行: 

db.getCollection(‘cap.published’).find({}).forEach(function(item){
    print( ‘db.getCollection(“cap.published”).insert(‘ + tojson(item) + ‘);’ );
});

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消