我对这里的伤害感到困惑.
我知道怎么做,见下文,但不知道为什么?它们适用于什么?
create table orders (order_no int not null auto_increment, FK_cust_no int not null,
foreign key(FK_cust_no) references customer(cust_no), primary key(order_no)) type=InnoDB;
create table orders (order_no int not null auto_increment, FK_cust_no int not null,
foreign key(FK_cust_no) references customer(cust_no), primary key(order_no));
Run Code Online (Sandbox Code Playgroud)