×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Haven't tried it, but:
Alter table mytable alter column mylongcolumnname for myshortnm
V5R4:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/db2/rbafzmst
atabl.htm
The syntax diagram indicates it should be changeable, but the detail for
alter column doesn't specify.
HTH,
Loyd
Loyd Goodbar
Business Systems
BorgWarner Shared Services
662-473-5713
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark S. Waterbury
Sent: Saturday, October 18, 2008 10:54 AM
To: Midrange Systems Technical Discussion
Subject: Re: DDS versus SQL DDL question
Thanks to all who replied.
If someone has created a table with column names longer than 10
characters, and did not specify that short name, DB2 automatically
generates a short name like "CUSTO00001" ... :-o
I cannot see any way to change those short names, once they are
generated, e.g. via ALTER TABLE.
Does anyone know if this is possible, or do I just have to create a new
table (with CREATE TABLE) and then copy the data over to it?
Thanks.
Mark S. Waterbury
Charles Wilt wrote:
create table mytable (
customer_number for CSTNBR numeric(5,0)
)
HTH,
Charles
As an Amazon Associate we earn from qualifying purchases.