search

Home  >  Q&A  >  body text

mongodb - mongo修改字段名?

mongo修改字段(列)名.

習慣沉默習慣沉默2793 days ago1127

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-02 09:20:18

    Use $rename operator.

    {
        "$rename" : {
                "老名字" : "新名字"
        }
    }

    Don’t forget to use multiple mode when updating

    reply
    0
  • Cancelreply