jimfog Posted August 20, 2013 Share Posted August 20, 2013 I want to delete 2 rows(one row in each table)-these tables are innoDB both were one column in one table references the column in the second table. I know that by deleting the column in the parent table the corresponding column in the child table also gets deleted. I assume that the delete statement will only mention the parent table-like I am deleting the row in one table and the deletion in the child table will be taken care of the storage engine. But how am I going to be sure that this the case. I have PHPMyAdmin and workbench-from where I will see that indeed this is the case? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 20, 2013 Share Posted August 20, 2013 For triggers, you can use the SHOW TRIGGERS query to show all of the triggers. For foreign key constraints, choose a table and select and Relation View. Link to comment Share on other sites More sharing options...
jimfog Posted August 21, 2013 Author Share Posted August 21, 2013 For triggers, you can use the SHOW TRIGGERS query to show all of the triggers. For foreign key constraints, choose a table and select and Relation View. From the above mentioned nothing achieves what I want...instead the solution is this. DELETE ON CASCADE. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now