问题
I have a database and want to output a UML Diagram. Is there software that does this?
Ideally it will be UML, but a graphics representation of the database could work.
回答1:
Boxes and arrows are all you need, but I'd recommend that you try E/R tools. They are similar to UML, but intended for relational databases. A good one can import and export SQL, which you won't get from a UML tool.
If you use MySQL, the MySQL Workbench does a very nice job, indeed.
回答2:
You can use Erwin Data Modeler, Embarcadero's ER Studio, or Microsoft's Visio. For a longer list visit this site http://www.databaseanswers.org/modelling_tools.htm.
回答3:
Enterprise Architect from Sparx Systems is a commercial UML modelling tool, with data(base) modelling facilities which include forward (to SQL) and reverse (from ODBC) schema engineering.
It supports most of the biggest databases, including Oracle, Sybase, MySQL, Access, SQL Server and PostgreSQL.
回答4:
I would recommend to use the Dali plugin of Eclipse. You just need a jdbc conncetor and can create java code from your database. From java code you then just reverse engineer the code into UML model in order to get class diagrams.
来源:https://stackoverflow.com/questions/7528118/sql-to-uml-diagram-or-graphic-tool