Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Created February 14, 2017 08:50
Show Gist options
  • Save Hotfirenet/8933061a89f235415f577a7214462eef to your computer and use it in GitHub Desktop.
Save Hotfirenet/8933061a89f235415f577a7214462eef to your computer and use it in GitHub Desktop.
Requete SQL pour prestashop qui permet de supprimer tous les paniers d'un client.
SET @idCustomer = 13377;
DELETE CP, P
FROM ps_cart_product CP
INNER JOIN ps_cart C ON C.id_cart = CP.id_cart
WHERE C.id_customer = @idCustomer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment