Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rwkyyy/52a556987e3c91ccf804e95b13afcbdf to your computer and use it in GitHub Desktop.
Save rwkyyy/52a556987e3c91ccf804e95b13afcbdf to your computer and use it in GitHub Desktop.
Select Duplicate SKUs from WooCommerce Database #woocommerce #mysql
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