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

Thread: Variables passed

  1. #1
    Join Date
    Jul 2001
    Posts
    181

    Cool

    if I have a select statement which basically does a
    select * from x where y='&1';
    Where x has many referencial tables in which I would like the variable passed to y to be used!

    What's the best way to build this into a sql statement, how do I pass the value inputted into '&1' further down within the script!

    Hope this is clear!!

    Many thanks


  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    instead of &1 use &&1

  3. #3
    Join Date
    Jul 2001
    Posts
    181
    Thanks!

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