Forked from yanknudtskov/woocommerce-duplicate-skus.sql
Last active
May 6, 2019 12:40
-
-
Save rwkyyy/52a556987e3c91ccf804e95b13afcbdf 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 wprh_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