How to copy table between two models in Mysql workbench?

后端 未结 9 1945
小鲜肉
小鲜肉 2020-12-28 14:42

I am doing some databese thing, I need copy one table from one model to another, but i try many ways there no effect. Is there any way for doing this?

9条回答
  •  伪装坚强ぢ
    2020-12-28 15:20

    If you already have your table created and just want to copy the data, I'd recommend using the "Export Data Wizard" and "Import Data Wizard". It is basically choosing stuff in the program for exporting and then importing the data and is easy to use.

    MySQL has an article on the wizards here: Table Data Export and Import Wizard

    To copy data using the wizards, do the following:

    1. Find the table in the list from which you want to copy data from.
    2. Right click and choose "Table Data Export Wizard."
    3. Choose the columns you wish to copy.
    4. Choose a location to save a *.csv or *.json file with the copied data.

    5. Find the table to insert the copied data to.

    6. Right click and choose "Table data import wizard".
    7. Choose the file you just exported.
    8. Map the columns from the table you copied from to the table you insert to.
    9. Press "Finish". The data is inserted as you chose.

提交回复
热议问题