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 | COS Function
- PLSQL : || Operator
- PLSQL | ABS Function
- PLSQL | MOD Function
- PLSQL | TAN Function
- PLSQL | CHR Function
- PLSQL | LEAST Function
- Difference between SQL and PLSQL
- PLSQL | LN Function
- PLSQL | EXP Function
- PLSQL | SIN Function
- PLSQL | LOG Function
- PLSQL | LENGTH2 Function
- PLSQL | ASCIISTR 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.