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: 6965
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
No new posts ISPF Table to add a new column TSO/ISPF 1
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
Search our Forums:


Back to Top