Skip to Main Content

Oracle Database Discussions

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!

How to remove default value from table definition?

537177Sep 27 2007 — edited Sep 27 2007
Hi,

running 9.2
Following problem :

I need to remove default value from table.
Example
CREATE TABLE MY_TABLE(
NAME VARCHAR2(50) DEFAULT 'NAME',
AGE NUMBER DEFAULT 0
);

Now even when I use MODIFY like

ALTER TABLE MY_TABLE MODIFY (NAME VARCHAR2(10) );
The default is still there:

SELECT DATA_DEFAULT FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MY_TABLE';

Is there any way?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2007
Added on Sep 27 2007
6 comments
1,574 views