I know how to replace a string using a query like:
UPDATE `postmeta` SET `meta_value` = REPLACE(`meta_value`, 'old_string', 'replacement')
What I want to do is for Mysql to choose a random string from a list of strings, sort of like this:
UPDATE `postmeta` SET `meta_value` = REPLACE(`meta_value`, 'old_string', RAND(['replacement','replacement2','replacement3']))
OR
I would like for it to cycle through the list instead of choose them randomly... eg: Replace the first record with 'replacement', second record with 'replacement2', fourth record with 'replacement'...
Is this sort of query possible?