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 > Are we able to rename a column in db2 v8 aix4.3 or 5.2?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-04, 11:18
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Are we able to rename a column in db2 v8 aix4.3 or 5.2?

Hi all,
I am working with db2 v8 fixpac 5 aix 5.2

Thanks in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 08-06-04, 11:32
Brownie Brownie is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Unhappy

As far as I know - that's impossible. The only thing you can do is change the length of CHAR/VARCHAR fields.
Reply With Quote
  #3 (permalink)  
Old 08-06-04, 11:37
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Talking

You gotta drop and recreate table with the new column name.

Newbie
Reply With Quote
  #4 (permalink)  
Old 08-06-04, 11:44
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by Brownie
As far as I know - that's impossible. The only thing you can do is change the length of CHAR/VARCHAR fields.
Thank you All,

I tried to change the length of column from char(8) to char(9) I got error SQL0190N!!!!! , I know varchar is OK but char I could not.

please advise
Reply With Quote
  #5 (permalink)  
Old 08-06-04, 13:22
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
I know you can do that in DB2 V8 for z/OS. I am not sure on DB2 for Windows, Unix and Linux.

Newbie
Reply With Quote
  #6 (permalink)  
Old 08-07-04, 06:43
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Yes. You are right. In LUW, only varchar length can be increased. Plse note, we can not decrease length.

Regards
Prakash
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