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

Thread: Parameter

  1. #1
    Join Date
    Nov 2001
    Posts
    12

    Lightbulb Parameter

    Hi,

    how to pass a parameter to Dynamic SQL script.

    ex: test.sql contains....

    Declare

    P_value varchar2(10);

    P_values := '&v_value';

    Begin

    select * from tab where col = p_value;

    end;

    it's possible passing the value like above.

    thanks in advance.

  2. #2
    Join Date
    Aug 2001
    Posts
    267
    It should be
    select * from tab where col = _value;
    Raghu

  3. #3
    Join Date
    Aug 2001
    Posts
    267
    Sorry I am not putting that Icon .I didn't know how it is getting there . You have use ':' before P_val
    Raghu

  4. #4
    Join Date
    Aug 2001
    Posts
    267
    'select * from tab where col=_value;'
    Raghu

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