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!

Add one column in existing table with default value

EV259Oct 29 2014 — edited Oct 30 2014

All,


I want to add one column in existing table with default value.but I don't want apply the default value in the existing rows.


It should be apply for only new rows that is going to be add.. how I can achieve this?


I have tried this one, but it updated the existing rows too...


alter table emp1 add num number default 10;

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2014
Added on Oct 29 2014
5 comments
540 views