Number To Be Displayed in Words

How to show the number to be displayed in words individually.
For example: 123 -> one two three
not one hundred twenty-three

Solution by Dharmendra :

The below code will show the desired result:
 
declare

v_num_spel_word number:=124634;

n number;

v_part number(2);

v_word varchar2(20);

begin

n:=length(v_num_spel_word);

for i in 1..n

loop

v_part:=substr(v_num_spel_word,i,1);

select to_char(to_date(v_part,'j'), 'jsp') into v_word from dual;

dbms_output.put(' '||v_word);

end loop;

dbms_output.put_line('');

end;

Have a Oracle Question
Do you have an Oracle Question?

Oracle Books
Oracle Certification, Database Administration, SQL, Application, Programming Reference Books

Oracle Application
Oracle Application Hints and Tips

Oracle Home
Oracle Database, SQL, Application, Programming Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.