ALTER TABLE DROP COLUMN Support

Document ID : KB000015373
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

I only want to drop a column of a table with RC/Update alteration or a RC/Migrator strategy.

 

However, a DROP TABLE is generated instead of ALTER TABLE ..  DROP COLUMN ...

Answer:

Please make sure there are no DB2 restrictions for dropping the column, e.g. if the containing table space is not a universal table space.

 

See a complete list here:

https://www.ibm.com/support/knowledgecenter/en/SSEPEK_11.0.0/sqlref/src/tpc/db2z_sql_altertable.html

 

 (search for ‘A column cannot be dropped if any of the following conditions are true’)

Additional Information: