But this is so much easier:

 select reverse('reverse') from dual;

A little RTFM goes a long way  :)

Jared

On Mon, 12 Mar 2001, Haunschmidt Andreas VASL/FAS wrote:

> Hi!
>
> Here's the function:
> -------------------------------------- snip
> -----------------------------------------
> create or replace
> function reverse_string(iText in varchar2)
> return varchar2 is
>   oText varchar2(2000);
> begin
>   for i in 1 .. least(2000,length(iText))
>   loop
>     oText := oText || substr(iText,-i,1);
>   end loop;
>   return oText;
> end;
> /
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to