创建“订单”表时,我不断收到错误消息。有任何想法吗?“客户”表已经存在,cust#
列也是如此。提前致谢。
create table orders(
`order#` char(4) not null,
orderdate date not null,
`cust#` char(4) not null,
amount decimal(10,2) not null,
primary key (`order#`),
foreign key (`cust#`) references customer (`cust#`)
on delete cascade on update cascade
) engine=InnoDB;
编辑:只是一个错字。感谢您的回复。