Skip to content
Advertisement

Converting Numbers to Words in MYSQL result! Using Query

I am trying to print a output as follows when I execute a query in mysql.

The column Salary has a value 45000 and in the third column the Value in second colunm is converted to words through Query.

I found some article where in Oracle we can get the result as above using the below query:

OUTPUT:

In MySQL I tried LPAD,RPAD but those just adds strings to the result not converting words to string.

I found some tutorial but all those explained about “TO_CHAR (dates)”.

Is there any way to do it?

Advertisement

Answer

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement