Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change the Column Default Value from NOT NULL to NULL

715920Feb 7 2011 — edited Feb 8 2011
Dear all,
how do I change the column default value from NOT NULL to NULL?
Suppose I run the following commands:
SQL> alter table hr.test modify temp_num2 default null;

Table altered.

SQL> desc hr.test;
 Name					   Null?    Type
 ----------------------------------------- -------- ----------------------------
 TEMP_NUM					    NUMBER
 TEMP_NUM2				   NOT NULL NUMBER
Why didn't temp_num2 constraint change to NULL? I'm running 11.g rel2

Best regards,
Valerie
This post has been answered by Ora on Feb 7 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2011
Added on Feb 7 2011
5 comments
12,818 views