Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IsaiChristian/2f175e67f4c5889eb5d1c6ba991a5b8f to your computer and use it in GitHub Desktop.
Save IsaiChristian/2f175e67f4c5889eb5d1c6ba991a5b8f to your computer and use it in GitHub Desktop.
UPDATE ps_product_shop SET active=0 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity=0);
UPDATE ps_product_shop SET active=1 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity>0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment