IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Alter Column for change in length


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RashmiJain

New User


Joined: 04 Aug 2010
Posts: 1
Location: India

PostPosted: Wed Aug 04, 2010 11:08 am
Reply with quote

If I alter a table for an increase in existing column lenght, then after an ALTER TABLE is executed, is a Drop View and a new CREATE VIEW for that table required?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 04, 2010 3:54 pm
Reply with quote



ALTER TABLE does not affect any view that references the table being altered.
This includes views that have an "*" in their SELECT list.
You must drop and re-create those views if you wish them to return the new columns.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top