Error de SQL: ORA-00904: identificador no válido (clave externa)
Frecuentes
Visto 904 veces
1 Respuestas
1
According to the DDL in your comments, shouldn't it be:
ALTER TABLE REZERVACIJA
ADD CONSTRAINT REZERVACIJA_KAMBARYS_FK1 FOREIGN KEY (REZERVACIJOS_KODAS)
REFERENCES KAMBARYS(KAMBARIO_NUMERIS)
ON DELETE CASCADE;
respondido 27 nov., 13:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas database oracle or haz tu propia pregunta.
What have you done to try to find the mistake? Just so that the obvious can be ruled out ... - David Aldridge
I search for solution in books, internet..but i cant find the answer - user3040774
How does your table
KAMBARYS
¿parece? EsKAMBARIO_NUMERIS
it's primary key? - ArmuninPlease post your definitions of the tables
KAMBARYS
yREZERVACIJA
. I would guess the error is somewhere in there. - ArmuninIt doesn't look like KAMBARIO_NUMERIS is a column in REZERVACIJA table, but you are trying to use it as a foreign key. - roartechs