|< < 28 > >|

Foreign keys and updates

There are other ways of ensuring referential integrity.

SET NULL

delete from P where p_id = 3;

P
p_id x
1123
2456
3789
4111
F
f_id p_id y
10011999
10021888
20012777
30013666
30023555
30033444
P
p_id x
1123
2456
4111
F
f_id p_id y
10011999
10021888
20012777
3001NULL666
3002NULL555
3003NULL444

|< < 28 > >|