(key是索引,constraint是约束,foreign key是外键,references是应用什么表的主键)
create table tb_user_role(id_user int(10) not null,key id_user(id_user),constraint id_user foreign key (id_user) references user_table (id))engine=Innodb default charset=utf8;
阅读(1243) | 评论(0) | 转发(0) |