Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Oracle/OAS
Search Coderanch
Advance search
Google search
Register / Login
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
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Oracle/OAS
Multiple columns having same foreign key
Jayavardhan geepi
Ranch Hand
Posts: 66
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 Vashko
Sheriff
Posts: 3837
66
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes, it should be possible, like this:
create table a(x number primary key); create table b(y number, z number); alter table b add constraint b_y foreign key(y) references a; alter table b add constraint b_z foreign key(z) references a;
Post your script and error messages if you cannot resolve it.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get fixed col width in Firefox
MySQL table joining
Developing website in English and Arabic
JTable Problem
Dynamic creation of custom filter based on the columns visible in the tableColumnHeader
More...