Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CONCAT not working as documented

1039423Sep 10 2013 — edited Sep 10 2013

I've written a SP and it refuses to work with the CONCAT function as documented.

>>Yes I have searched the web and other locales to no avail.

Create Procedure `SP_CODE`(IN search_term VarChar(200))

begin

  if search_term is not null then

    begin

       Select b.s_term, a.O_Number, a.S_CODE, a.LONG_DESC

       From JKC a INNER JOIN search_terms b ON a.S_CODE = b.S_CODE

       Where b.s_term like CONCAT('%', search_term, '%');

    end;

end;

The editor believes that the problem is at CONCAT('%', search_term, '%');

Any ideas what might be the problem would be helpful. THX...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2013
Added on Sep 10 2013
7 comments
1,059 views