问题
I have a .sql file containing many CREATE TABLE statements. There's no referential specification (MyISAM stuff) but I would enjoy to create different table boxes, and then compose the table relationships by hand. I am using a mac. Is there a free program to do this ?
回答1:
Yes, the MySQL Workbench can reverse-engineer a diagram from an SQL script that contains a set of CREATE TABLE
statements.
Use the menu: File > Import > Reverse Engineer MySQL Create Script...
回答2:
Go to SchemaBank, open a free account, import your sql file and start editing. Nothing to install at all.
来源:https://stackoverflow.com/questions/1370563/generate-graphical-schema-representation-from-create-table-sql