PL/SQL: Program to Reverse a string

Category: Beginner
In this tutorial, you’ll learn how to write a program in order to reverse a string.

Comments

akash vaid says:

or we can do this, without reversing the loop
str1:=substr(str,i,1)||str1;

siddhartha rao says:

But y we are concatenating?

Angathan Paramasivam says:

Very good explanation. How about if I want to get a set of 5 digits numbers and encrypt the number to different numbers and return the encrypted number. Encrypted value should only be 5 numbers too.

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!