How can I make my sql increment the value by 1 when it is a character?
For example if SUBSTR(corp_id_nbr,1,1) = D, I want to be able to
increment to get the value E.
SELECT TRANSLATE(UPPER(SUBSTR(corp_id_nbr,1,1)),
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'BCDEFGHIJKLMNOPQRSTUVWXYZA')
FROM sometable;
IIRC this will even have the extra benefit of ignoring anything that
is not alpha and just plopping out the original value.
Like the rest of the folks here, I am assuming that you are just
trying to transform the output of your query and that you do
understand that there is an "update" statement if you actually want to
make a change to the values in the table.