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 string, the task is to reverse a string using PL/SQL.
Input: skeegrofskeeg Output: geeksforgeeks Input: geeks Output: skeeg
- Find the length of the string.
- Then traverse the string in a reverse manner.
- Store the characters in another string.
- Print the final string.
Below is the required implementation:
Reverse of string is geeksforgeeks
- PLSQL | TAN Function
- PLSQL | CHR Function
- PLSQL | MOD Function
- PLSQL : || Operator
- PLSQL | LN Function
- PLSQL | SIN Function
- PLSQL | ABS Function
- PLSQL | LEAST Function
- PLSQL | COS Function
- PLSQL | LOG Function
- Difference between SQL and PLSQL
- PLSQL | EXP Function
- PLSQL | SIGN Function
- PLSQL | EXTRACT Function
- PLSQL | COSH 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 firstname.lastname@example.org. 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.