Fórum Duvidas na criação do bd. #59604
27/03/2008
0
Caros colegas.
Estou tentando fazer uma foreign key no interbase.
-----------------------------------------------------------------------
alter table calcgas
add constraint fk_orcamento_calcgas foreign key (id_nref) references orcamento (nref)
------------------------------------------------------------------------
Mas ele da o seguinte erro:
--------------------------------------------------------------------
Unsuccessful metadata update
could not find UNIQUE INDEX with specified columns
Statement: alter table calcgas
add constraint fk_orcamento_calcgas foreign key (id_nref) references orcamento (nref)
--------------------------------------------------------------------
Se alguém puder me ajudar...
Obrigado.
Estou tentando fazer uma foreign key no interbase.
-----------------------------------------------------------------------
alter table calcgas
add constraint fk_orcamento_calcgas foreign key (id_nref) references orcamento (nref)
------------------------------------------------------------------------
Mas ele da o seguinte erro:
--------------------------------------------------------------------
Unsuccessful metadata update
could not find UNIQUE INDEX with specified columns
Statement: alter table calcgas
add constraint fk_orcamento_calcgas foreign key (id_nref) references orcamento (nref)
--------------------------------------------------------------------
Se alguém puder me ajudar...
Obrigado.
Uelinton_reis
Curtir tópico
+ 0
Responder
Posts
04/04/2008
Sremulador
verificque se o campo de referencia e unico, e indexado
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)