Quote:
|
Originally Posted by Bren99
Is it possible to drop a column from a DB2 table...and if so will the table require a reorg etc after the drop.
|
If the column is a *text* field (char(n) or varchar(n)), you could reduce its size by changing its datatype to VARCHAR(n) [same n as before] and then filling the column with empty text ('').
If you're at version 9, you could then make the column "invisible", i.e., it will no longer show up with "SELECT * FROM tbl".
Alternatively, RENAME the table then create a view with the original table name, pointing to the renamed table, but with just the columns you want to be visible.
In all cases, you will indeed need a REORG and possibly a REBIND of all static SQL that was using the table.