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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to include a '%' in a PL/SQL script?

Re: How to include a '%' in a PL/SQL script?

From: Noel <tbal_at_go2.pl>
Date: Wed, 31 Mar 2004 12:00:11 +0100
Message-ID: <c4e4iq$h02$1@inews.gazeta.pl>

> SQL> SELECT parent_id FROM family WHERE company_id like '%1234';
> identify :=
> 'SELECT parent_id FROM family WHERE company_id like ''%:here''';

       identify :=
       SELECT parent_id FROM family WHERE company_id like ''%'||:here||''';

What's ':here' in this procedure?
What if that select statetment returns more than one, or returns no rows?

--
TomekB
Received on Wed Mar 31 2004 - 05:00:11 CST

Original text of this message

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