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: INSTR('/')- SQL problem

Re: INSTR('/')- SQL problem

From: Stephan Born <stephan.born_at_beusen.de>
Date: Thu, 09 Dec 1999 10:07:59 +0100
Message-ID: <384F716F.77905971@beusen.de>

yitbsal_at_statcan.ca schrieb:

> > I would like to use the INSTR function to get the position of a char.
> > The char to look for is the slash "/". When I write a statement like:
> > "INSTR(mystring,'/')" it seems to me, that the slash will be ignored.
> Is
> > there something like a special char before the slash when I want to
> use
>
> SQL> select instr('foo/bar', '/') from dual;
>
> INSTR('FOO/BAR','/')
> --------------------
> 4
>
> So I think QueryBuilder is the problem.
>

What about

select instr('foo/bar', chr(47)) from dual;

This should work if you find no other work around

Regards, Stephan

--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-0           | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------
       PGP-Key verfügbar       |      PGP-Key available
---------------------------------------------------------------


Received on Thu Dec 09 1999 - 03:07:59 CST

Original text of this message

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