![](/style/images/good.png)
![](/style/images/bad.png)
Can anyone query the oracle SQL query to convert a 10 digit figure into words?
source link: https://www.codesd.com/item/can-anyone-query-the-oracle-sql-query-to-convert-a-10-digit-figure-into-words.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Can anyone query the oracle SQL query to convert a 10 digit figure into words?
can anyone tell the oracle sql query for converting 10 digit number into words? for example I have numbers like 9876543210 and i would to convert these numbers as NINE EIGHT SEVEN SIX FIVE FOUR THREE TWO ONE ZERO.
Actually, for this purpose, you can use a bunch of replace()
s:
select replace(replace(. . . . replace(col, '0', 'ZERO '
), '1', 'ONE '
. . .
)
You'll need 10, one for each digit. You might want to throw in a TRIM()
after the last one to remove the final space.
Related Articles
What is the most efficient way to convert an eight-digit number into a date?
How to run the .sql file in the Oracle SQL Developer Tool to import the database?
JasperReport: How do I get the date of the "oracle.sql.TIMESTAMP" field?
Can anyone explain the release?
Can anyone explain the following PHP code?
Can anyone improve the Fuzzyfind function below for VBA?
How can I see the actual SQL of an ASP SqlDataSource will be executed (after linking)
How can I rewrite the following SQL query in the LINQ query?
Get the record range of the Oracle SQL query
Can I get the T-SQL query generated from a LinqDataSource?
The Oracle SQL query does not display the correct value
How can I avoid this blocking in the Oracle.sql.ARRAY type?
What causes the Oracle SQL execution plan to change based on the value of the where clause?
How to format the Oracle SQL text selection output only
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK