Need pl sql program for converting numbers into words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need pl sql program for converting numbers into words

hi, I need to convert the numbers into words. for example: i have a 10 digit mobile number as 9876543210, I wat to convert this into 'NINE EIGHT SEVEN SIX FIVE FOUR THREE TWO ONE ZERO or as NINETY EIGHT CORES SEVENTY SIX LAKHS .....etc. without USING JSP IN THE QUERY. PLEASE HELP ME IN THIS TO write a SQL Query or PL-SQL program for this concept.

24th Feb 2017, 2:33 AM
jaga jagadesh
jaga jagadesh - avatar
1 Answer
0
you need to extract those numbers from the database. and use a switch satatment . to convert them . to get the data you need PHP . it would be something like this. - connect to database -retrieve the column for numbers - convert the string of numbers to an array. - iterate through the array - switch (array[index]) inside the above loop ex: switch (array[index]){ case 0 : somevarialble ='zero'; break; case 1 : somevariable ='one'; etc. you can store those somevariable in an array instead.
25th May 2017, 11:22 AM
Bahhaⵣ
Bahhaⵣ - avatar