Quote:
|
Originally Posted by docc
Im using DBDesigner and I can't figure out what is the funcionality with FKindexes?
|
this is your first experience with foreign keys? perhaps you should take a tutorial
something went wrong with your PK, it should not be 3 columns in your case, just the first one, the auto_increment
the INDEXes generated by the tool are correct, given that those columns would be the foreign keys to the other tables
however, in recent releases of mysql, these foreign key indexes are created by mysql automatically when the foreign key is declared
i didn't see the actual FK definitions in your CREATE TABLE statement so i assume it is in a subsequent ALTER TABLE statement?
as for your last question, yes you should make relationships (declare primary and foreign keys) -- most definitely, yes
whether you use a tool such as a gui designer, or whether you write SQL by hand, you should make those relationships
