Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

i used reverse function for a palindrome program in pl/Sql block but it says to declare the reverse

1058829Jan 29 2014 — edited Jan 28 2015

declare

i_var varchar2(30):='&enter_string';

vout varchar2(20);

begin

     vout:=lower(reverse(i_var));

     if lower(i_var)=vout then

                     dbms_output.put_line('this is a palindrome');

        else      

                     dbms_output.put_line('this is not a palindrome');

        end if;

end;

This post has been answered by Hoek on Jan 29 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2014
Added on Jan 29 2014
6 comments
4,522 views