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

Thread: dynamically assign column headers

  1. #1
    Join Date
    May 2000
    Location
    Delhi
    Posts
    108
    Hi

    is there any way to dynamically assign column headers in a SQL

    statement?

    Select col_1||' '||col_2 dynamic_name from table where x = y
    and have the dynamic_name be derived from another table?
    thanks
    Sonu Saxnea

  2. #2
    Join Date
    May 2000
    Location
    Delhi
    Posts
    108

    ya friends i got the solution

    ya friends i got the solution
    DB817>col ename new_value name
    DB817>select ename from emp where empno = 7369;

    ENAME
    ----------
    SMITH

    DB817>col dummy head &name
    DB817>select ename dummy from emp;

    sonu saxena

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