Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

foreign key relationship, in that the reference table (foreign key table) is null

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see a foreign key relationship, in that the reference table (foreign key table) is null but it has foreign value key. So what type of constraint it is?
EX:
ALTER TABLE XXXXX.XXXXXXXX
ADD FOREIGN KEY (ABCDEF)
REFERENCES null (null);
DB: Oracle.
 
Brian Tkatch
Bartender
Posts: 567
25
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds odd. REFERENCES must specify a TABLE, and optionally, a COLUMN. Are you're rights restricted in the DB?

Run this query in SQLPlus and pass the tablename when asked:
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jacob deiter wrote:I see a foreign key relationship, in that the reference table (foreign key table) is null but it has foreign value key. So what type of constraint it is?

Are you really sure? Because that makes no sense at all. Why would you add a FK if you don't define a reference table?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic