Bonjour. Je voudrais une confirmation ....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
DELETE FROM `stock_gpe_name`
         WHERE id_stock_gpe IN (
                    SELECT id_stock_gpe
                    FROM  `stock_gpe_name`as sgn
                    LEFT JOIN `stock_gpe`as sg ON sgn.id_stock_gpe= sg.id_gpe
                    WHERE sg.id_gpe IS NULL )
Ce code ne fonctionne pas. Mysql répond:
You can't specify target table 'stock_gpe_name' for update in FROM clause
Faut-il obligatoirement passer par une table temporaire pour arriver à ses fins ?
Merci.