由于外键错误,我无法创建此表。错误消息是:
无法创建表格&CHFFERS.MOVEPOSITION' (错误:150)
CREATE TABLE CHECKERS.MOVEPOSITION (
moveposition_id int NOT NULL auto_increment,
game_id int NOT NULL,
participant_id int NOT NULL,
square_id int NOT NULL,
move_type_id int NOT NULL,
move_order varchar(32) NOT NULL,
from_position varchar(32) NOT NULL,
to_position varchar(32) NOT NULL,
PRIMARY KEY (moveposition_id),
FOREIGN KEY (square_id) REFERENCES PIECE (square_id),
FOREIGN KEY (participant_id) REFERENCES PARTICIPANT (participant_id)
);
我想知道是否曾经有人创建具有多个外键的表可以提供帮助吗?