Forked from yanknudtskov/woocommerce-duplicate-skus.sql
Created
July 21, 2021 08:17
-
-
Save beatwiz/34912ddb4b525e9b7e44e0e2569ae7b8 to your computer and use it in GitHub Desktop.
Select Duplicate SKUs from WooCommerce Database #woocommerce #mysql
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_fanatic_shop_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