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 and the task is to find whether it is Palindrome or not.
Input: str = geeksskeeg Output: geeksskeeg is palindrome Input: str = geeks Output: geeks is not palindrome
Approach is to take the string, reverse it and check whether the reversed string is equal to the original string or not. If it is equal, then it will be palindrome otherwise not.
Below is the required implementation:
abccba is palindrome
- Check if a number is Palindrome in PL/SQL
- PLSQL | CHR Function
- Difference between SQL and PLSQL
- PLSQL : || Operator
- PLSQL | ABS Function
- PLSQL | LENGTH4 Function
- PLSQL | ATAN Function
- PLSQL | RPAD Function
- PLSQL | UPPER Function
- PLSQL | NCHR Function
- PLSQL | DUMP Function
- PLSQL | INSTRB Function
- PLSQL | DECOMPOSE Function
- PLSQL | SOUNDEX Function
- PLSQL | LENGTHB 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.