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: Like clause in store procedure

Re: Like clause in store procedure

From: Jim Kennedy <kennedy-downwithspammersfamily_at_attbi.net>
Date: Fri, 19 Mar 2004 03:49:31 GMT
Message-ID: <f5u6c.37553$_w.588414@attbi_s53>

"Jawahar Rajan" <jrajan_at_nc.rr.com> wrote in message news:9Ct6c.2056$qH5.169919_at_twister.southeast.rr.com...
> All,
> I have a stored procedure that return a Ref Cursor
> The SQL in the procedure is
>
> Procedure getPatName(in_name IN Varchar2, retCursor OUT patCursor)
> Is
> Begin
> Open retCursor For
> SELECT NAME, weight
> FROM patient
> WHERE patient_name like = in_name;
>
> End getPatName;
>
> I have defined patCursor in the spec of the package of which getPatName is
a
> part of
>
> This procedure does return any rows despite the data being present I am
> assuming the SQL using like is not correct. How can I build a SQL in a
> procedure using LIKE - is the above correct?
>
> Jawahar
>
>

lose the = sign.
Jim Received on Thu Mar 18 2004 - 21:49:31 CST

Original text of this message

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