create table USERS (
PK_USER int not null auto_increment primary key,
EMAIL varchar(100) not null,
PASSWORD char(40) not null
);
create table CIRCLES (
PK_CIRCLE int not null auto_increment primary key,
CIRCLE varchar(45),
FK_CREATOR int,
foreign key(FK_CREADOR) references USERS(PK_USER)
);
create table MEMBERS (
FK_MEMBERS int,
FK_CIRCLES int,
foreign key(FK_MEMBER) references USERS(PK_USER),
foreign key(FK_CIRCLE) references CIRCLES(PK_CIRCLE)
);
对PK_USER
进行双重引用是否正确?
(对于参考USERS = USUARIOS,成员= MIEMBROS,CIRCLES = CIRCULOS,CREATOR = CREADOR)
答案 0 :(得分:0)
我可以“推断”他们扮演两个不同的角色:
所以:如果那些是你的意图,那你就没事了。)