×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You can add alternate names for a column using CREATE OR REPLACE TABLE.
Something like this should work for you.

Original table:
create table changeit (NM0123 varchar(100), NC998 int);

Modify the source to add alternate names. The system names remain the
same:
create or replace table changeit (NAME_OF_ITEM for NM0123 varchar(100),
NUMBER for NC998 int);

Now your SQL can use either name for these columns.

Sue Romano
Db2 for IBM i Development

Is there a way to rename the Column-Name of a table's column only, while
leaving the System-Name of that column how it currently is? I would like
to >be able to have a SQL developer use a 'friendly' column name instead
of the limited 10 position field names from DDS.

Thank you,

Doug


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.