Results 1 to 3 of 3

Thread: Diference Between & and && in SQL

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Diference Between & and && in SQL

    what is the difference between & and && in sql ?
    Ex:- 1. spool &filename
    2. CONNECT &&USER/&&PASSWORD@&&DBSERVER;

    What is the use of these two operators?


    Regards
    Krishna


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Diference Between & and && in SQL

    "&" is used to create a temporary substitution variable that will prompt you for a value every time it is referenced.

    "&&" is used to create a permanent substitution variable. Once you have entered a value (defined the variable) its value will used every time the variable is referenced.


  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Diference Between & and && in SQL

    That is used so that the user don't have to enter value of the variable repeatedly, in case the variable is processed more than once in the program.


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