Last active
May 25, 2020 14:41
-
-
Save anton-roos/2fbbe18fb283f39cf7e7aac87c6d6a47 to your computer and use it in GitHub Desktop.
Select duplicate SKUs from WooCommerce database.
This file contains 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
SELECT meta_value | |
FROM wp_postmeta | |
WHERE meta_key = '_sku' | |
AND meta_value != '' | |
GROUP BY meta_value HAVING COUNT(meta_value) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment