Hi,
I would like to form a table which needs to be connected with 2 other tables. I need to create 2 foreign keys for them. But there is an error pop out saying "There is an relationship named 'Avatar_fk' in the table". Did I make any mistake in the following SQL.
I would like to form a table which needs to be connected with 2 other tables. I need to create 2 foreign keys for them. But there is an error pop out saying "There is an relationship named 'Avatar_fk' in the table". Did I make any mistake in the following SQL.
Code:
Create table Avatar ( AvatarID varchar(100) NOT NULL, AvatarName varchar(100), Gender char(1), DOB date, AvatarStrengthIndicator int, Hoard int, SpeciesID varchar(100), PlayerID varchar(100), Constraint Avatar_pk PRIMARY KEY (AvatarID), Constraint Avatar_fk FOREIGN KEY (PlayerID) REFERENCES Player (PlayerID) Constraint Avatar_fk FOREIGN KEY (SpeciesID) REFERENCES Species (SpeciesID) );
Comment