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: Mark C. Stock <mcstockX_at_Xenquery>
Date: Wed, 31 Mar 2004 06:32:52 -0500
Message-ID: <pICdnTz5dO4QMffdRVn-ig@comcast.com>

"Noel" <tbal_at_go2.pl> wrote in message news:c4e4iq$h02$1_at_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
|
|

apparent :here is a bind variable

;-{ mcs Received on Wed Mar 31 2004 - 05:32:52 CST

Original text of this message

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