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

Thread: Column

  1. #1
    Join Date
    Feb 2003
    Location
    faisalabad
    Posts
    1

    Post Column

    Can i have column in variable in where condition in query for example:

    select * from emp
    where a = 10;

    a = deptno

    how is possible, plz send me.

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    It's a strange thing to want to do, and the nearest i can get to is is to alias the column name, like ...

    create view emp_v
    as
    select emp, dept a
    from emp

    Why do you want to do this?
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

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