new_database是目的数据库
db.<collection_name>.find().forEach(function(d){ db.getSiblingDB('<new_database>')['<collection_name>'].insert(d); });

相关文章:

  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-02-25
  • 2022-01-11
相关资源
相似解决方案