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 > Alter Column Length

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-04, 06:55
ADee ADee is offline
Registered User
 
Join Date: Jan 2004
Location: Karachi,pakistan
Posts: 17
Alter Column Length

I m on DB2 7.1 ,OS win2000;
using control center i can alter the table colum lenght having VARCHAR type,but its not allow me to do the same with CHARACTER type.
anyone know how to do it???
tell me query as well if u know
plz
__________________
A.Dee
Reply With Quote
  #2 (permalink)  
Old 06-25-04, 07:15
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by ADee
I m on DB2 7.1 ,OS win2000;
using control center i can alter the table colum lenght having VARCHAR type,but its not allow me to do the same with CHARACTER type.
anyone know how to do it???
tell me query as well if u know
plz
You can't change the length of a CHAR column. To do it you need to drop/recreate the table.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 06-25-04, 07:21
ADee ADee is offline
Registered User
 
Join Date: Jan 2004
Location: Karachi,pakistan
Posts: 17
hummmm.....so suppose to do a long job...anyways Thanx alot!
__________________
A.Dee
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