Exporting only table structure using mysqlworkbench

↘锁芯ラ 提交于 2020-01-10 12:03:21

问题


Can anybody tell whether it possible for exporting only the table structure using MySQL workbench


回答1:


To get an individual table's creation script:

  • just right click on the table name and click Copy to Clipboard > Create Statement.

To enable the File:

  • Forward Engineering SQL_CREATE Script.. option and to get the creation script for your entire database:

    1. Database > Reverse Engineer (Ctrl+R)
    2. Go through the steps to create the EER Diagram
    3. When viewing the EER Diagram click File > Forward Engineering SQL_CREATE Script... (Ctrl+Shift+G)



回答2:


For those of you that like the visual answer :

Start export - done :)




回答3:


It's possible to do this at once too. Select "Data Export" in the navigator and then select the schema and the required tables. Then check the checkbox saying "Skip table data(no data)" and then click on "Start Export" button.




回答4:


In MySQL workbench ,when we are exporting data you have a 3 options Dump Data only,"Dump Structure only", Dump Data Structure only.

Server -> Data Export -> select the schema , Dump Structure only (beside refresh)

  • export to self- contained file - location of SQL to export *click on start Export

$ when we are import this .SQL file , we will get schema without data only tables




回答5:


In Workbench version 6.3 is Menu Server->Data Export and then select "Dump structure only" in the selection list at the right of the window




回答6:


1) Right click the table and select "Table Inspector"
2) Last tab "DDL" has the table scheme



来源:https://stackoverflow.com/questions/22317204/exporting-only-table-structure-using-mysqlworkbench

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!