此处表 SEARCHAUTHOR 正在重试 CATALOGUEBASE 但代码导致以下错误:
Error Code: 1005. Can't create table 'easylibdb1.SEARCHAUTHOR' (errno: 150)
CATALOGUEBASE
TABLE的表结构
CREATE TABLE IF NOT EXISTS CATALOGUEBASE(
ID INT UNSIGNED NOT NULL AUTO_INCREMENT,
TITLE VARCHAR(250),
SUBTITLE VARCHAR(250),
AUTHOR VARCHAR(100),
EDITION VARCHAR(500) DEFAULT '',
TITLENUMBER VARCHAR(500),
PRIMARY KEY (ID)
);
和SEARCHAUTHOR
表
CREATE TABLE IF NOT EXISTS SEARCHAUTHOR(
ID INT UNSIGNED NOT NULL AUTO_INCREMENT,
TITLENUMBER VARCHAR(500),
AUTHOR VARCHAR(250) DEFAULT '',
SEQUENCE INT UNSIGNED,
PRIMARY KEY (ID),
FOREIGN KEY (TITLENUMBER) REFERENCES CATALOGUEBASE (TITLENUMBER)
);
提前致谢。