它会导致mysql出错
create table book_copies
(
bookid references book(bookid) on delete set null,
programme_id references library_branch(programme_id) on delete set null,
no_of_copies int
);
在此输入图像描述 https://i.stack.imgur.com/kfOOX.png
a
你缺乏types https://dev.mysql.com/doc/refman/8.0/en/data-types.html为您的专栏。每列都需要一个类型,例如int
or varchar(255)
.
如果您的列引用主键,则它们的类型可能是int
or bigint
.
create table book_copies (
bookid int references book(bookid) on delete set null,
programme_id int references library_branch(programme_id) on delete set null,
no_of_copies int
)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)