Results 1 to 2 of 2

Thread: How do I use a input variable inside like condition

  1. #1

    How do I use a input variable inside like condition

    How Do I use a input parameter to a procedure in a query inside like condition.

    let v_empl is varchar input parameter to a procedure.

    then select * from empl where empname like '%v_empl%';

    is yeilding null rows.

    How do I use a input variable inside like condition.


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    130

    Re: How do I use a input variable inside like condition

    Hi Bharani,

    Use your query as follows,
    select empno, empname from empl where empname like '%'||v_empl||'%';

    This way you can use the input variable inside the like condition.

    *** Innila ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact