By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Msg 1785 Level 16 State 0 Line 1
Introducing FOREIGN KEY constraint 'fk_t4_t1' on table 't4' 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 1 Line 1
Could not create constraint or index. See previous errors.
14 rows affected
v | t1 | t2 | t3 | t4 |
---|---|---|---|---|
1 | 1 | 1 | 1 | 1 |
2 | 2 | 2 | 2 | 2 |
3 | 3 | 3 | 3 | null |
4 | 4 | 4 | null | null |
5 | 5 | null | null | null |
1 rows affected
v | t1 | t2 | t3 | t4 |
---|---|---|---|---|
1 | null | null | null | null |
2 | 2 | 2 | 2 | 2 |
3 | 3 | 3 | 3 | null |
4 | 4 | 4 | null | null |
5 | 5 | null | null | null |