0

无法添加外键约束

代码 :

create table works_with (
    emp_id int,
    client_id int,
    total_sales int,
    primary key(emp_id,client_id),
    foreign key(emp_id) references employee(emp_id) on delete cascade,
    foreign key(client_id) references client(client_id) on delete cascade
);
4

0 回答 0