Prerequisite – PL/SQL introduction
In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given a number and task is to convert each digit of the number into words.
Input: 47856 Output: Four Seven Eight Five Six Input: 123456 Output: one two three four five six
Approach is to select the corresponding word of a particular number using decode function.
Below is the required implementation:
Entered Number is: 123456 Number to words: One Two Three Four Five Six
- PLSQL | CONVERT Function
- PLSQL | LEAST Function
- PLSQL | LN Function
- PLSQL | MOD Function
- PLSQL | EXP Function
- PLSQL | SIN Function
- PLSQL | COS Function
- PLSQL | ABS Function
- PLSQL : || Operator
- PLSQL | CHR Function
- PLSQL | LOG Function
- PLSQL | TAN Function
- Difference between SQL and PLSQL
- PLSQL | REPLACE Function
- PLSQL | INSTR4 Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.