Q
Problem solve Get help with specific problems with your technologies, process and projects.

Converting NULL with an ALTER statement

In DB2, how do I convert a NOT NULL WITH DEFAULT column to NULL? I don't want to drop the table and recreate. Is this possible with an ALTER statement?

In DB2, how do I convert a NOT NULL WITH DEFAULT column to NULL? I don't want to drop the table and recreate. Is this possible with an ALTER statement?
Unfortunately, the answer to your question is "no", it is not possible to change a column to be null without dropping it, and then recreating it.

 

Have a database question of your own? Send it our way and we'll give it to our panel of experts to answer. Check out these other titles for more tips and news on DB2 and DBMS:

 

This was last published in July 2004

Dig Deeper on IBM DB2 management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchAWS

SearchContentManagement

SearchOracle

SearchSAP

SearchSQLServer

Close