问题
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:
- Database > Reverse Engineer (Ctrl+R)
- Go through the steps to create the EER Diagram
- 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