Skip site navigation (1) Skip section navigation (2)

Consulta Foreign Key

From: "Juan Manuel Fernandez" <jmfernandez(at)unlu(dot)edu(dot)ar>
To: "Lista - PostgreSQL" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Consulta Foreign Key
Date: 2008-04-28 22:03:39
Message-ID: 27f3c8cd0804281503r19127186m90eda444348259b2@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
Hasta que lo que yo se una foreign key debe reflejar algun valor que
este en la tabla que referencia o debe ser nula...

Que esta pasando? ya estoy mareado :(

Warning: pg_query() [function.pg-query]: Query failed: ERROR: insert
or update on table "t_asignaturas_dictadas" violates foreign key
constraint "fkc_reglamentan0002" DETAIL: Key (nro_disposicion)=() is
not present in table "t_programas". in C:\xampp\htdocs\alta_oferta.php
on line 49



             Saludos,

                          Juan

Responses

pgsql-es-ayuda by date

Next:From: Fabio AriasDate: 2008-04-28 22:09:33
Subject: PROGRAMAR VACCUMM
Previous:From: Juan Manuel FernandezDate: 2008-04-28 20:08:37
Subject: Dudas sobre Almacenamiento de imagenes en PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group