I have html content in the post_content column.
I want to search and replace A with B but only the first time A appears in the record as it may appear more than onc
It's simpler
UPDATE table_name SET column_name = CONCAT('A',SUBSTRING(column_name, INSTR(column_name, 'B') + LENGTH('A')));