Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Select Duplicate SKUs from WooCommerce Database #woocommerce #mysql
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