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
To keep the sample of gjreda a bit more simple use this:
UPDATE wp_post SET post_content = CONCAT( REPLACE(LEFT(post_content, 1), 'A', 'B'), SUBSTRING(post_content, 2) ) WHERE post_content LIKE 'A%';