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

Home -> Community -> Usenet -> c.d.o.misc -> Re: character count in a string

Re: character count in a string

From: Charles Hooper <hooperc2000_at_yahoo.com>
Date: 23 Jan 2007 07:48:13 -0800
Message-ID: <1169567293.582981.200990@s48g2000cws.googlegroups.com>


Eitan M wrote:
> Hello,
> how can I get a specific character count in a string
> (
> i.e : string is 56222, and I am looking for '2' occurance
> when i do :
> select charcount('56222') should return : 3
> )
>
> Thanks :)

INSTR is all that you need. See:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions068.htm

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc. Received on Tue Jan 23 2007 - 09:48:13 CST

Original text of this message

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