Posts by Marques • 1 point
3 posts
-
0
votes1
answer1596
viewsA: MYSQL - Error Code: 1451. Cannot delete or update a Parent Row: a Foreign key Constraint fails
I resolved delimite $ create Trigger Trg_excluidependenteantes_bd -- -> BD Before delete (Antes) before delete on employee for each Row Begin SET foreign_key_checks = 0; delete from Dependente…
-
-1
votes1
answer1596
viewsQ: MYSQL - Error Code: 1451. Cannot delete or update a Parent Row: a Foreign key Constraint fails
I have to make a Rigger, where when being excluded an employee will also be excluded his dependent. But I can not delete. the code was like this: delimiter $ create trigger TRG_excluiDependente_AD…
-
0
votes1
answer442
viewsQ: Structs vector for function
I’m having a problem passing a vector of structs for a function that checks whether an entire code entered by the user has already been used. #include <stdio.h> #include <stdlib.h>…