Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
MongoDB ReferenceError: la colección no está definida:

¿Por qué MongoDB no me permite copiar una colección en otra?

 > db.crashntsb.copyTo(crashntsbclean) 2017-01-13T09:09:49.236+0530 E QUERY [main] ReferenceError: crashntsbclean is not defined : @(shell):1:1 >

Dice que la nueva colección no está definida. ¿Cuál puede ser el motivo? ¿Necesito crear la colección? En la documentación dice que Mongodb crea esta nueva colección https://docs.mongodb.com/v3.2/reference/method/db.collection.copyTo/

Cualquier ayuda muy apreciada

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

el siguiente código funcionará para usted.

 db.crashntsb.copyTo("crashntsbclean")

Se requieren comillas dobles, aunque la documentación no lo dice.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!