Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: AW: Script for reversing a string?

Re: AW: Script for reversing a string?

From: <jkstill_at_cybcon.com>
Date: Tue, 13 Mar 2001 08:16:42 -0800
Message-ID: <F001.002CAD93.20010313070044@fatcity.com>

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: jkstill_at_cybcon.com

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: ListGuru_at_fatcity.com (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).
Received on Tue Mar 13 2001 - 10:16:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US