I have a column (value) with mediumtext NULL where, among other things, are also datetime string values saved.
I have to select all datetime values and convert them to Unix datetime.
the selecting I have to like so
SELECT value FROM thetable WHERE value REGEXP '^["]+(2[0-9]{3})'
but ho do I do the uptate tried this
UPDATE thetable set value = UNIX_TIMESTAMP(value) WHERE value REGEXP '^["]+(2[0-9]{3})';
but it does not affect anything. I think I need a combination of both.