Hi, I am new.
I have two table like this
create table1(
ID VARCHAR(10),
CONSTRAINT PKeyt1 PRIMARY KEY (ID)
)
create table2(
ID1 VARCHAR(10),
ID2 VARCHAR(10)
)
I want to add foreign key to table2 which ID1 and ID2 is different but referenced same column ID and ON UPDATE CASCADE. I tried every way which I now but I get this error
Msg 1785, Level 16, State 0, Line 2
Introducing FOREIGN KEY constraint 'blabla' on table 'blabla' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 2
Could not create constraint. See previous errors.
How can I do this or can sql do this :)) thanks for reply...