• Input :-
    •  
    • str1 varchar2 (50):= ‘&str’;

      str2 varchar2 (50);

      len number;

      i number;

    •  
    •  
    •  

      for i in reverse 1..len

    •  
    • str2:=str2 || substr(str1, i, 1);

      end loop;

      dbms_output.put_line(‘Reverse of String is:’ || str2);

    •  
    •  
    •  
    • Enter value for str: hello world

      Old 2: str varchar2(50):=’&str’;

    •