MySQL Error Code: 1005
问题 I am trying to add foreign keys to my table but receiving this error. Error Code: 1005 Can't create table 'william.#sql-88c_3' (errno: 150) I have 3 tables. employee, client and Contract. employe [employee_no PK] , Client[customer_no PK] contract [contract_no PK] I want to have Foreign keys for contract as contract [contract_no PK, employee_no FK], customer_no FK] I tried to do directly it failed, I am now trying the alter statement.Is anything wrong with the Alter script? ALTER TABLE