执行此查询后得到外键约束的错误(150)

时间:2016-11-04 14:15:51

标签: mysql

create table generate (
    ticket_id numeric(5),
    person_id numeric(5),
    primary key(ticket_id,person_id),
    foreign key(ticket_id) references ticket(ticket_id),
    foreign key(person_id) references person(person_id)
);

0 个答案:

没有答案