mysql建立外键语句

alter table t_book add constraint `fk` foreign key (`bookTypeId`) references t_booktype(`id`); 或者在创表时直接加上 CREATE TABLE t_book( id int primary key auto_increment, bookName varchar(20), author varchar(1
相关文章
相关标签/搜索