PL/SQL program to reverse a string

Added By: Editorial Staff | Last Updated: | In: PL/SQL


PL/SQL is one of three key programming languages which is only available in Oracle Database.

PL/SQL program to reverse a string

Copy the below PL/SQL program and execute it. In this program, we are going to share a PL/SQL program to reverse a string with the output.

Program Output:

Enter value for str: hello world
old 2: str1 varchar2(50):=’&str’;
new 2: str1 varchar2(50):=’hello world’;
Reverse of String is:dlrow olleh

Share this post!


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari