I have this table:
I want to copy the value from key "_regular_price" to the value of key "_price". The end result wanted is the "_price" value to be "100" in this example.
I have tried with:
UPDATE
`wp_postmeta`
SET
`_price`= `_regular_price`
WHERE
`meta_key`="_price" AND `meta_value`=""
But this inserts "_regular_price" and not the value of "_regular_price".
How to fix this query?
Help me SQL ninjas :)