Jump to content

MySQL relationship between table


joshbb

Recommended Posts

1. Tables must be InnoDB (or XtraDB or other engine that supports FK constraints)

2. In PMA select a table, where you want to add a FK constraint, go to 'Structure' tab

3. make sure there is an index created on FK column

4. click 'Relation view' (at the bottom)

5. From the dropdown list next to FK column name, select a table and column that the constraint is to belong to

6. Select ON DELETE and ON UPDATE actions

7. Click 'Save'

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.