dbTalk Databases Forums  

Oracle column default value

comp.databases.oracle comp.databases.oracle


Discuss Oracle column default value in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
was
 
Posts: n/a

Default Oracle column default value - 07-14-2004 , 08:42 AM






Hi All,

I 'm using Oracle 8i and i have a table table1 with two columns:

COL1 not null
COL2 DEFAULT 'N'

if i make an insert :
insert into table1(COL1,COL2) values (1,null)

The column COL2 is null and I would like to have N (the default value)

when i make an insert like this:
insert into table1(COL1) values (1)
it's work well. The value of the COL2 is 'N'.

i don't want to use the trigger to do this.

Thanks for your help.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.