主表字段属性
`AplcntCode` varchar(10) NOT NULL,
UNIQUE KEY `AplcntCode` (`AplcntCode`)
外键表CREATE TABLE ass(
  AgentId INT NOT NULL,
  AplcntCode varchar(10) NOT NULL,
PRIMARY KEY(AgentId,AplcntCode),
  FOREIGN KEY(AgentId) REFERENCES SysUser(UserId) ON DELETE CASCADE,
  FOREIGN KEY(AplcntCode) REFERENCES applicantinfo(AplcntCode) ON DELETE CASCADE
);在windows下创建子表没有问题,但是再linux下就提示:
ERROR 1215 (HY000): Cannot add foreign key constraint请问这是什么原因呢?  ·很急 · 在线等。,。