If you are thinking of fancy built-in functions like val(), str() etc., you would feel disappointed, they are not there! Does that mean, you can not do such operation? No.
A workaround for converting decimal to char is to use the lpad() or rpad() built-in function and to conver char to decimal is to invoke the mathematical expression like:
select char_column * 1 from table_name ...
select char_column + 0 from table_name ...
select lpad(dec_column,10,' ') from table_name ...
select rpad(dec_column,10,' ') from table_name ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.