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

Thread: Can a column have two names

  1. #1
    Join Date
    Sep 2002
    Posts
    1
    Hi,

    We are in a desperate situation in our project where if we find a round-about solution for having a column with 2 names.

    That is if a update is done on either of the names it should update the values in the specified column.

    Anyone have/find a solution for this.

    Regards,
    Satish

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    rename my_table to my_table_background;

    create view my_table as select col1 ,col1 second_name,col1 third_name from my_table_background;

    you probably have to regrant your table permissions on the view that replaces it.

  3. #3
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Simply a brilliant sollution!
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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