标签: mysql sql wordpress woocommerce
我使用此查询来检索重复的SKU。
SELECT post_id, meta_value FROM wp_postmeta WHERE meta_key = '_sku' AND meta_value != '' GROUP BY meta_value HAVING COUNT(meta_value) > 1
如果我要检索所有重复的带有标题和库存数量的SKU?