Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Location
    India
    Posts
    10

    Unanswered: aliases for columns

    hi all,

    how can i set aliases for column names in DB2. ?? Thanks in advance

    Regards ,
    Vinu

  2. #2
    Join Date
    Feb 2002
    Location
    Germany
    Posts
    141
    I don't thing you can set an "alias" for a column. If you need to "see" the column with another name, you can
    1.- create a view and define new names for the columns
    -> CREATE VIEW myView (newName)
    FOR SELECT oldName FROM myTable
    2.- override the column names in your SQL statements
    SELECT oldName AS newName FROM myTable
    Rodney Krick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •