Answer the question
In order to leave comments, you need to log in
Does it make sense to set the ON UPDATE CASCADE constraint when referring to primary keys?
ALTER TABLE `tickets` ADD CONSTRAINT `FK_user_author_id` FOREIGN KEY (`user_author_id`) REFERENCES `users`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question