Double Ampersand &&?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Double Ampersand &&?

  1. #1
    Join Date
    Apr 2001
    Location
    London
    Posts
    725
    Hi Friends,

    Can anyone please explain the use of a double ampersand &&.

    Can you please decode the following example and explain the use of && :

    WHILE v_price < &&p_count LOOP
    v_amount := v_amount + 1;
    v_prive := v_amount * &&pct_increase;
    END LOOP;

    Many Thanks

    Suresh


  2. #2
    Join Date
    May 2000
    Location
    Portsmouth, NH, USA
    Posts
    378

    Talking


    you use a double ampersand (&&) if you want to REUSE the variable value without prompting the user to input the value each time.

    so, if you have '&&salary' and you put '50000', then in your script you can keep using '&&salary' and it will continue to use the '50000' that was entered at the beginning.

    looks like you have '&&' below for some type of table or tablespace creation script or something like that ...

    hope that helps.

    - Magnus

  3. #3
    Join Date
    Apr 2001
    Location
    London
    Posts
    725
    Thanks for your prompt reply magnus

    Suresh

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