If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > FK column is automatic not null ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-08-09, 08:10
chomik chomik is offline
Registered User
 
Join Date: Dec 2008
Posts: 53
FK column is automatic not null ?

column which is PK is automatic not null. What about FK column - is it also automatic not null or I must add not null to this column ?
Reply With Quote
  #2 (permalink)  
Old 11-08-09, 09:05
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,413
Cool Add it

You need to add the NOT NULL constraint if that is the requirement, otherwise you can leave as NULL if nulls are permitted.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 11-08-09, 09:29
chomik chomik is offline
Registered User
 
Join Date: Dec 2008
Posts: 53
ok thx, I thought that FK columns are automatic not null as PK columns
Reply With Quote
  #4 (permalink)  
Old 11-08-09, 15:48
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,591
No need to presume when you can easily try it. Can't you?
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On