mailRe: [Galette-discussion] Suppression du contenu de la table des adhérents.


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by johan on April 15, 2016 - 06:19:
Le 14 avril 2016 19:18:23 GMT+02:00, "D. MERCIER" <dd.mercier@xxxxxxx> a 
écrit :

1701 – Cannot truncate a table referenced in a foreign key constraint
(‘cinemalehgal’.’galette_cotisations’, CONSTRAINT
‘galette_cotisations_ibfk_2’ FOREIGN KEY(‘id_adh’)
REFERENCES ‘cinemalehgal’.’galette_adherents’ (‘id_adh’))

Salut,

Comme l'indique le message d'erreur, un TRUNCATE ne fonctionnera pas de 
toutes manières.

Il faut utiliser "DELETE FROM".

++
-- 
Johan
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.



Related Messages


Powered by MHonArc, Updated Fri Apr 15 08:40:11 2016