One straightforward way would be to just maintain a table of codes, and then join to it:
CREATE TABLE codes (Code integer, Name varchar(5));
INSERT INTO codes (Code, Name)
VALUES
(1, 'A'),
(2, 'B'),
(3, 'C'),
(4, 'D');
SELECT t1.Code, t2.Name
FROM table_1 t1
INNER JOIN codes t2
ON t1.Code = t2.Code;
Note that I vote against doing this update, because as your underlying code values change, you might be forced to do the update again. The above approach doesn't have that problem, and you get the correct name when you select.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…