Home  >  Q&A  >  body text

mongodb - 数据库在添加新功能的时候,如果需要改动数据库字段一般如何迁移数据

数据库在添加新功能的时候,如果需要改动数据库字段一般如何迁移数据

为情所困为情所困2758 days ago887

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-25 09:03:57

    To change the fields in the table, check the syntax of ALTER TABLE and use SQL commands to modify it.
    Another method is to create a new table, import the old data into the new table, then delete the old table and rename the new table

    reply
    0
  • Cancelreply