• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 598
26
Oracle Notepad Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Sheriff
Posts: 11606
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic