Subject | Re: [firebird-support] Foreign Key on 2 or more columns |
---|---|
Author | Martijn Tonies |
Post date | 2009-09-23T13:32:50Z |
Hello Stephane,
It sounds like your design needs to be modified, it sounds wrong.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com
> in tableA i have some record with the field ID_contact that point to theHow do you know it's pointing to ContactA or ContactB?
> table ContactA or to the table ContactB. so in this way i can not create a
> foreign key on my field ID_Contact.
>
> How to do ? i thing by stored procedure, but what is the best way and the
> most efficient way to do that in store procedure ?
It sounds like your design needs to be modified, it sounds wrong.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com