Subject | Re: two foreign key to one primary key |
---|---|
Author | Alexander V.Nevsky |
Post date | 2004-03-06T12:06:37Z |
--- In firebird-support@yahoogroups.com, "sebastianmartin98"
<sebastian.martin@g...> wrote:
DESPOSITOS?
Best regards,
Alexander.
<sebastian.martin@g...> wrote:
> FOREIGN KEY (DEPORIGEN) REFERENCES DEPOSITOSSebastian, perhaps typo in table name - is it DEPOSITOS or
> (CODDEPOSITO),
> FOREIGN KEY (DEPDESTINO) REFERENCES DESPOSITOS
> (CODDEPOSITO));
>
> I always receive an error like this:
>
> Statement failed, SQLCODE = -607
>
> unsuccessful metadata update
> -could not find UNIQUE INDEX with specified columns
> Statement failed, SQLCODE = -104
>
> If I only use one reference to the foreing key, it works fine.
> any help?? why is that? is my error?
DESPOSITOS?
Best regards,
Alexander.