msi79
Messages postés509Date d'inscriptionlundi 24 août 2009StatutMembreDernière intervention 2 mai 2023
-
13 avril 2021 à 17:40
NHenry
Messages postés15067Date d'inscriptionvendredi 14 mars 2003StatutModérateurDernière intervention27 mai 2023
-
17 avril 2021 à 21:43
Bonjour,
voici l'erreur qui s'affiche :
UPDATE materiaux SET clef = 'axKZn038' WHERE id IN (SELECT M.id FROM materiaux M WHERE M.date BETWEEN '2021-04-12' AND '2021-04-13' AND M.id_program = 3 GROUP BY M.lot,M.id_etape )
MySQL a répondu: Documentation
#1093 - You can't specify target table 'materiaux' for update in FROM clause
UPDATE materiaux SET clef = 'axKZn038' WHERE id IN (SELECT M.id FROM materiaux M WHERE M.date BETWEEN '2021-04-12' AND '2021-04-13' AND M.id_program = 3 GROUP BY M.lot,M.id_etape )