Could you please explain your requirement. It is not clear enough.
What it sounds like is that you want to spell out the number instead of printign the numeric value. Print the word ‘FIVE’ instead of the number ’5′.
Here is a piece of SQL that you can use to acomplish this. ~~~~~~~~~~~~~~~ myanswer varchar2(500); begin mynumber := 0;
for mynumber in 101..109 loop
select to_char(to_date(trunc(mynumber),’J'),’Jsp’) into myanswer from dual;
dbms_output.put_line (mynumber ||’ Spelled out: ‘||myanswer); end loop; end;
Could you please explain your requirement.
It is not clear enough.
What it sounds like is that you want to spell out the number instead of printign the numeric value. Print the word ‘FIVE’ instead of the number ’5′.
Here is a piece of SQL that you can use to acomplish this.
~~~~~~~~~~~~~~~
myanswer varchar2(500);
begin
mynumber := 0;
for mynumber in 101..109 loop
select to_char(to_date(trunc(mynumber),’J'),’Jsp’)
into myanswer
from dual;
dbms_output.put_line (mynumber ||’ Spelled out: ‘||myanswer);
end loop;
end;