问题
I'm trying to import an existing DB to mysqlq Workbench. I can do this. It's works perfectly. However the process just import the tables without relations between them.
How can I import the the db and create the eer model with relations between them?
回答1:
Relationships are the visual expression of foreign keys. If your DB tables use foreign keys (actually: a storage engine supporting foreign keys) then they are automatically shown in the diagram. It should be clear that this condition is only true for the InnoDB storage engine.
来源:https://stackoverflow.com/questions/40526510/create-eer-model-from-an-existing-db-but-with-the-relations-done-workbench