Currently I have a column in my SQL table that saves payment information. For example a column might have "VISA-2435 exp:12/13 Auth#32423". I want to edit the VISA-2435 to display instead VISA-XXXX. Each row occurs is different so I can't do a simple search and replace for that static string.
I tried the following query, but i'm not taking into account how the string might be different
UPDATE messages
SET message = REPLACE(message, LIKE'%Visa-2334%', 'VISA-xxxx')
WHERE message LIKE '%Visa'
Also, I could changed my mind and just edit the exp:12/13 portion of the string instead.
Does anybody have any suggestions?


