
To declare foreign keys in PGSQL, there are few points which user should bear in mind: If you receive PostgreSQL Error likes ERROR: there is no unique constraint matching given keys for referenced table "xxxx", it is caused by failure on creating Foreign Keys.


These errors are related to MySQL itself. There are some possible cases that might cause failure on creating Foreign Keys on MySQL database.

If you receive MySQL Error likes 1005: Can't create table '.\mydb\#sql-44c_1c.frm'(errno: 150), it is caused by failure on creating Foreign Keys. Why I cannot successfully create the foreign keys?Īpply Navicat Product: Navicat for MySQL, Navicat for PostgreSQL
