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

Thread: Case of column heading

  1. #1
    Join Date
    Apr 2002
    Posts
    50
    Hi all, just a curious question :
    When retrieving the resultset from a SQL Query, is it possible to convert the case of the column heading displayed ? For

    e.g., select sysdate from dual;

    SYSDATE
    ---------
    13-MAY-02

    If I want to change the case of SYSDATE in the output,
    I couldn't find a way to do it !! Is it really possible ?

    Shiva.

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    SQL> select to_char(sysdate, 'dd-mon-rr') from dual;

    TO_CHAR(S
    ---------
    13-may-02

    SQL> select to_char(sysdate, 'dd-Mon-rr') from dual;

    TO_CHAR(S
    ---------
    13-May-02

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Code:
    SQL> select to_char(sysdate,'mm/dd/yyy') "sYsDaTe" from dual;
    
    sYsDaTe
    ---------
    05/13/002
    
    SQL>
    Jeff Hunter

  4. #4
    Join Date
    Apr 2002
    Posts
    50
    Thanks Jeff.

    Shiva.

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