aspose file tools
The moose likes Oracle/OAS and the fly likes Multiple columns having same foreign key Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "Multiple columns having same foreign key" Watch "Multiple columns having same foreign key" New topic
Author

Multiple columns having same foreign key

Jayavardhan geepi
Ranch Hand

Joined: Jul 21, 2010
Posts: 63
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
Bartender

Joined: Aug 22, 2010
Posts: 1219

Yes, it should be possible, like this:
Post your script and error messages if you cannot resolve it.
 
 
subject: Multiple columns having same foreign key
 
Threads others viewed
Dynamic creation of custom filter based on the columns visible in the tableColumnHeader
how to get fixed col width in Firefox
MySQL table joining
Developing website in English and Arabic
JTable Problem
MyEclipse, The Clear Choice