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!

take default values if null is passed

3351Jan 21 2004 — edited Jan 21 2004
Hi All

I would like to know if this possible in oracle.
I have certain columns in a table which are mandatory(not null)
I have default values for these columns attached

Now ideally only when we skip these columns while insert into the table, are the default values attached to the newly inserted rows.

But what i want is to have the default values attached to the new rows even when the insert statement is trying to insert a null value table & not raise a not null constraint


is this possible , if yes can somebody ellaborate

Rgrds

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2004
Added on Jan 21 2004
3 comments
311 views