Problem creating foreign keys in mySql
问题 I created a foreign key in my sql by the following statemnt.. ALTER TABLE `users` ADD FOREIGN KEY ( `id`) REFERENCES `user_login` (`user_id`) ON DELETE CASCADE ; The creation appears to succeed then after that I execute a delete statement DELETE From user_login WHERE user_id = 1576; yet in users the row still exists that is referencing that. I open up the mysql workbench and it doesn't show any signs that the foreign key was created. Does anyone know why this would be? Or what I am doing