Created
July 1, 2014 13:38
-
-
Save Altreus/9dbd05de050cc7295ff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE | |
sip | |
FROM | |
search_index_products sip | |
JOIN products p ON sip.productId=p.productId AND (sip.countryId=p.countryId OR (p.countryId=? AND p.productId NOT IN (SELECT productId FROM | |
products WHERE countryId=?))) | |
WHERE | |
p.refreshCache=1 | |
AND sip.countryId=? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment