Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In Oracle, column defaults do not f

Status
Not open for further replies.

agifford

IS-IT--Management
Mar 18, 2005
2
US
In Oracle, column defaults do not function if the column is named in the insert.

Is there any way to change this behavior short of writing an insert trigger to replace null values with default values? Perhaps a database setting or some other nifty trick?

My only other alternative is to change my program to exclude columns for which it has no values, thus allowing the DEFAULT value to function properly, but this would be an ever bigger pain than creating the insert trigger.

Any thoughts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top