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

Thread: & character

  1. #1
    Join Date
    Nov 2000
    Posts
    416

    Question

    Can we use an ampersand (&) character in the subquery of a SELECT statement ?

    THX


    Ex. SELECT ename, empno, sal
    FROM emp
    WHERE deptno = (SELECT deptno
    FROM dept
    WHERE UPPER(loc) = UPPER('&loc'))


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    In sqlplus, sure.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Jan 2001
    Posts
    60
    we can use it any where ,it just helps us in dynamic usage of variable(run time usage of vairable) its not related with queries .

    Thanks
    lnr
    html code is off

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