MySQL: ON DELETE

Published: 21 November 2022
on channel: Bro Code
21,994
489

#MySQL #tutorial #course

00:00:00 intro
00:02:24 SET NULL
00:04:40 CASCADE
00:07:11 conclusion

ALTER TABLE transactions
ADD CONSTRAINT fk_customer_id
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
ON DELETE SET NULL;

ALTER TABLE transactions
ADD CONSTRAINT fk_customer_id
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
ON DELETE CASCADE;


On this page of the site you can watch the video online MySQL: ON DELETE with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 21 November 2022, share the link with friends and acquaintances, this video has already been watched 21,994 times on youtube and it was liked by 489 viewers. Enjoy your viewing!