如何使用Python将一个列从mongodb中的一个集合复制到另一个集合

如何使用Python将一个列从mongodb中的一个集合复制到另一个集合

问题描述:

您好,

这里我想将一个列从一个集合复制到另一个集合,并使用python语言在mongoDB中进行某些映射。

我有什么查询写。?

请帮忙。

提前致谢。



我尝试过:



Pymongo

Mongoclient

Os

Sys

Mongoconnection

$ eq

$ gte这些模块

Hello,
Here i want to copy one column from one collection to another collection with certain mapping in mongoDB using python language.
What is the query i have to write.?
Please help.
Thanks in advance.

What I have tried:

Pymongo
Mongoclient
Os
Sys
Mongoconnection
$eq
$gte these modules

eq >


gte这些模块