Posts by user22912 • 49 points
1 post
-
4
votes5
answers42558
viewsA: How to delete data from a table with dependencies in other tables
When creating a relationship between the tables put the on delete and delete update in cascade. Example: ALTER TABLE `tab_audiencia` ADD CONSTRAINT `tab_audiencia_ibfk_1` FOREIGN KEY (`usuario`)…