MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 Drop Column

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Tue Jan 11, 2005 12:54 pm    Post subject: DB2 Drop Column Reply with quote

I've already searched, came up empty. Can a column be altered/dropped from a table?
Back to top
View user's profile Send private message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Tue Jan 11, 2005 1:00 pm    Post subject: Reply with quote

I found this: It is not possible to rearrange or delete columns in a table without dropping the entire table. You can, however, create a view on the table, which includes only the columns you want, in the order you want. This has the same effect as redefining the table.
I hope this is not true.
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jan 11, 2005 4:11 pm    Post subject: Reply with quote

NASCAR9,

Quote:

I hope this is not true.


Unfortunately it is Indeed true !

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Renjitji
Beginner


Joined: 01 Feb 2005
Posts: 2
Topics: 0

PostPosted: Tue Feb 01, 2005 1:53 am    Post subject: Reply with quote

Hope columns can be dropped from tables in subsequent versions. Oracle had a similar siutation but now after version 8 they have 2 ways of dropping columns and can alter(increase) the length of columns.


It would be better if the people posting could mention the version or platform they are working on.

Thank you

Renjith
Back to top
View user's profile Send private message Send e-mail
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Feb 02, 2005 10:42 am    Post subject: Reply with quote

Renjitji, zOS/390 V 7.2 DB2, migrating to 8.X
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group