If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Anyone know how to make an alternative column name?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-10-07, 13:47
mr_coffee mr_coffee is offline
Registered User
 
Join Date: Aug 2007
Posts: 28
Arrow Anyone know how to make an alternative column name?

Hello everyone.

I'm using IBM's Rational Software Architect to reverse engineer db2 databases.

There is an option that says
Column display options
-SHOW LABEL


All the databases I've reversed engineer, this button does nothing.

But what I was hoping it would do would be another name for a column.

For instance If i had a DDL that looked like this:

CREATE TABLE
"bridgeLink"
(
"1.3.18.0.0.3315.8.7.2"
VARCHAR(120)
,
"1.3.18.0.0.3573"
ObjectLink
,
"1.3.18.0.0.5273"
VARCHAR(120)

...
...


Is there a way to have an alternative name for the column

for instance:
if I wanted the column to be named
"1.3.18.0.0.3573" and also be named bridgeLinkName
is this possible?

I was wondering if maybe a label was infact this..

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-11-07, 00:14
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can use views to create alternate column names.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-11-07, 00:22
mr_coffee mr_coffee is offline
Registered User
 
Join Date: Aug 2007
Posts: 28
Thanks for the response!
Can this be done in the .ddl?

The only reason for this is to keep the dotted decimal name with the readable English name so things don't get lost in translation. Would just mimic the table with different names?
Reply With Quote
  #4 (permalink)  
Old 09-11-07, 16:36
mr_coffee mr_coffee is offline
Registered User
 
Join Date: Aug 2007
Posts: 28
Never mind I found a good enough solution!
__________________
IBM: Tivoli zSeries Co-op
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On