• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple columns having same foreign key

 
Jayavardhan geepi
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

In a table I have 2 columns which must refer to same column of another table.

while Executing alter table query for 2nd column it says such a constraint already exists.

Can some one help.. Is this possible?
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it should be possible, like this:
Post your script and error messages if you cannot resolve it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic