2021
03-19
03-19
mongodb 数据生成Insert 语句的示例代码
执行: db.getCollection('cap.published').find({}).forEach(function(item){ print( 'db.getCollection("cap.published").insert(' + tojson(item) + ');' );});返回结果:db.getCollection("cap.published").insert({"_id":NumberLong("1102078858484363264"),"Name":"order.rabbitmq.mongodb","Content":"{\"Id\":\"5c7b668a61ff69508c6804e4\",\"Timesta...
继续阅读 >