DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Variable in INSTR

  1. #1
    Join Date
    Sep 2002
    Posts
    376

    Variable in INSTR

    Hi,
    How can i pass a variable in INSTR function.

    if i say
    instr(m.id,v_id,') it is taking v_id as a Literal rather than a variable.
    How to handle this ?

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    dynamic SQL

  3. #3
    Join Date
    Sep 2002
    Posts
    376
    Sorry !

    i have solved it...it was some quote problems.

  4. #4
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    You not using SQL then, if it was SQL you need dynamic SQL

    You simply do

    l_var1 := instr(field1, v_id)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width