This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
jacob deiter
Ranch Hand
Posts: 587
  • 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: 598
26
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: 11338
177
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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!