Table relations in Navicat

steavy picture steavy · Mar 17, 2012 · Viewed 11k times · Source

How do I add table relations in Navicat without using SQL queries? Is there some kind of wizard or helper to do this?

Answer

Stephen Senkomago Musoke picture Stephen Senkomago Musoke · Mar 17, 2012
  1. Select the table, right click then select Design Table

  2. First go to the Options tab and ensure that your Engine is InnoDB which supports foreign key relationships

  3. Then go to the Foreign keys tab.

  4. Once you add one foreign key save it, so that you resolve any issues that may stop it from being created