Created
February 24, 2021 13:06
-
-
Save cubehrends/12da3cf1c2744f119c1716abdc1a8b5e to your computer and use it in GitHub Desktop.
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
UPDATE wp_postmeta AS sku | |
JOIN (SELECT post_id, meta_value FROM wp_postmeta WHERE meta_key = '_ts_gtin') AS gtin USING (post_id) | |
SET sku.meta_value = gtin.meta_value | |
WHERE sku.meta_key = '_sku' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment