MySQL - How to replace a given value from multiple columns when using SELECT?
SELECT IF(A01 = 99999, NULL, A01) AS A01,
       IF(A02 = 99999, NULL, A02) AS A02,
       ...
    FROM ...


(For empty string, use '' instead of NULL.)