MySQL Forums
Forum List  »  MySQL Workbench

Re: EER diagram of database with tables in myisam
Posted by: Scott Noyes
Date: April 18, 2008 01:21PM

Hi Rahul,

MyISAM will silently ignore any foreign keys defined in a CREATE TABLE statement. As such, Workbench cannot reverse engineer relationships between MyISAM tables. However, when designing schemas in Workbench, you can create foreign keys between tables, and they will be stored in the model file.

It is not necessary (even with InnoDB) to have foreign keys defined between tables to build a relationship; that is done at query time based on the join condition, e.g. SELECT * FROM table1 JOIN table2 ON table1.x = table2.y

Options: ReplyQuote

Written By
Re: EER diagram of database with tables in myisam
April 18, 2008 01:21PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.