Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将 mongo 集合导出到 CSV。我正在使用 mongoexport 类似的东西:
mongoexport --db myDb --collection myCollection --fields _id,myField1,myField2 --csv --out myExport.csv
如何获取导出中每一行的值_id而不是值?ObjectID(509b82904eb8dd3621000008)
_id
ObjectID(509b82904eb8dd3621000008)